Documentation/pretty-{formats,options}: better reference for "format:<string>"
PATCH 1/1 Documentation/pretty-{formats,options}: better reference for "format:<string>"
In "git help log" (and friends) it's not easy to find the possible placeholder for <string> for the "--pretty=format:<string>" option to git log.
This patch makes the placholder easier to find by adding a reference to the "PRETTY FORMATS" section and repeating the "format:<string>" phrase.
--- Documentation/pretty-formats.txt | 4 ++-- Documentation/pretty-options.txt | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-)
Documentation/pretty-formats.txt +2 -2
@@ -76,9 +76,9 @@ displayed in full, regardless of whether --abbrev or true parent commits, without taking grafts nor history simplification into account. -* 'format:' +* 'format:<string>' + -The 'format:' format allows you to specify which information +The 'format:<string>' format allows you to specify which information you want to show. It works a little bit like printf format, with the notable exception that you get a newline with '%n' instead of '\n'.
Documentation/pretty-options.txt +3 -2
@@ -3,8 +3,9 @@ Pretty-print the contents of the commit logs in a given format, where '<format>' can be one of 'oneline', 'short', 'medium', - 'full', 'fuller', 'email', 'raw' and 'format:<string>'. - When omitted, the format defaults to 'medium'. + 'full', 'fuller', 'email', 'raw' and 'format:<string>'. See + the "PRETTY FORMATS" section for some additional details for each + format. When omitted, the format defaults to 'medium'. + Note: you can specify the default pretty format in the repository configuration (see linkgit:git-config[1]).
Signature · 1 line
1.7.1.226.g770c5
Quoted 9 lines · Nazri Ramliy
In "git help log" (and friends) it's not easy to find the possible placeholder for <string> for the "--pretty=format:<string>" option to git log.
This patch makes the placeholder easier to find by adding a reference to the "PRETTY FORMATS" section and repeating the "format:<string>" phrase.
Signed-off-by Nazri Ramliy <[email protected]>
Makes sense; thanks.
Quoted 38 lines
Documentation/pretty-formats.txt | 4 ++-- Documentation/pretty-options.txt | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-)Documentation/pretty-formats.txt +2
-2@@ -76,9 +76,9 @@ displayed in full, regardless of whether --abbrev or true parent commits, without taking grafts nor history simplification into account. -* 'format:' +* 'format:<string>' + -The 'format:' format allows you to specify which information +The 'format:<string>' format allows you to specify which information you want to show. It works a little bit like printf format, with the notable exception that you get a newline with '%n' instead of '\n'.Documentation/pretty-options.txt +3
-2@@ -3,8 +3,9 @@ Pretty-print the contents of the commit logs in a given format, where '<format>' can be one of 'oneline', 'short', 'medium', - 'full', 'fuller', 'email', 'raw' and 'format:<string>'. - When omitted, the format defaults to 'medium'. + 'full', 'fuller', 'email', 'raw' and 'format:<string>'. See + the "PRETTY FORMATS" section for some additional details for each + format. When omitted, the format defaults to 'medium'. + Note: you can specify the default pretty format in the repository configuration (see linkgit:git-config[1]).Signature · 1 line
1.7.1.226.g770c5
Quoted 1 line · Nazri Ramliy
This patch makes the placholder easier to find by adding a reference
Sorry for the typo.
s/placholder/placeholder/
nazri