diff --git a/man/git-changelog.1 b/man/git-changelog.1 index 62594db..d651101 100644 --- a/man/git-changelog.1 +++ b/man/git-changelog.1 @@ -1,7 +1,7 @@ .\" generated with Ronn/v0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3 . -.TH "GIT\-CHANGELOG" "1" "December 2015" "" "" +.TH "GIT\-CHANGELOG" "1" "November 2017" "" "" . .SH "NAME" \fBgit\-changelog\fR \- Generate a changelog report @@ -18,6 +18,17 @@ Generates a changelog from git(1) tags (annotated or lightweight) and commit mes .P If no tags exist, then all commits are output; if tags exist, then only the most\-recent commits are output up to the last identified tag\. This behavior can be changed by specifying one or both of the range options (\-f|\-\-final\-tag and \-s|\-\-start\-tag)\. . +.P +You could customize the changelog format via some git config options\. +. +.IP "\(bu" 4 +\fBgit config changelog\.format $format\fR controls the format of each commit\. It will be passed as \fBgit log \-\-pretty=format:$format\fR\. The default value is \fB* %s\fR\. +. +.IP "\(bu" 4 +\fBgit config changelog\.mergeformat $format\fR is like changelog\.format but only used when \fB\-\-merges\-only\fR is specified\. The default value is \fB* %s%n%w(64,4,4)%b\fR\. +. +.IP "" 0 +. .SH "OPTIONS" . diff --git a/man/git-changelog.html b/man/git-changelog.html index d71fa37..34db05f 100644 --- a/man/git-changelog.html +++ b/man/git-changelog.html @@ -85,6 +85,14 @@

If no tags exist, then all commits are output; if tags exist, then only the most-recent commits are output up to the last identified tag. This behavior can be changed by specifying one or both of the range options (-f|--final-tag and -s|--start-tag).

+

You could customize the changelog format via some git config options.

+ + + +

OPTIONS

<file>

@@ -163,7 +171,7 @@

AUTHOR

-

Written by Mark Eissler <mark@mixtur.com>

+

Written by Mark Eissler <mark@mixtur.com>

REPORTING BUGS

@@ -176,7 +184,7 @@
  1. -
  2. December 2015
  3. +
  4. November 2017
  5. git-changelog(1)
diff --git a/man/git-changelog.md b/man/git-changelog.md index 46d6dd7..4e84243 100644 --- a/man/git-changelog.md +++ b/man/git-changelog.md @@ -12,6 +12,12 @@ git-changelog(1) -- Generate a changelog report If no tags exist, then all commits are output; if tags exist, then only the most-recent commits are output up to the last identified tag. This behavior can be changed by specifying one or both of the range options (-f|--final-tag and -s|--start-tag). + You could customize the changelog format via some git config options. + + * `git config changelog.format $format` controls the format of each commit. It will be passed as `git log --pretty=format:$format`. The default value is ` * %s`. + + * `git config changelog.mergeformat $format` is like changelog.format but only used when `--merges-only` is specified. The default value is `* %s%n%w(64,4,4)%b`. + ## OPTIONS <file> @@ -44,7 +50,7 @@ git-changelog(1) -- Generate a changelog report -m, --merges-only - Uses only merge commits (commits with more than 1 parent) for generated changelog. It also changes the default format to include the merge commit messages body, as on github the commits subject line only contains the branch name but no information about the content of the merge. + Uses only merge commits (commits with more than 1 parent) for generated changelog. It also changes the default format to include the merge commit messages body, as on github the commits subject line only contains the branch name but no information about the content of the merge. -p, --prune-old