From: Nazri Ramliy Date: Tue, 1 Jun 2010 17:54:46 +0000 (+0800) Subject: Documentation/pretty-{formats,options}: better reference for "format:" X-Git-Tag: v1.7.2-rc0~3^2~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=41e4d69fb82cd92bbc39accc9cb2be49b7597b5c;p=git.git Documentation/pretty-{formats,options}: better reference for "format:" In "git help log" (and friends) it's not easy to find the possible placeholder for for the "--pretty=format:" 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:" phrase. Signed-off-by: Nazri Ramliy Signed-off-by: Junio C Hamano --- diff --git a/Documentation/pretty-formats.txt b/Documentation/pretty-formats.txt index 1686a54d2..c85a52c0c 100644 --- a/Documentation/pretty-formats.txt +++ b/Documentation/pretty-formats.txt @@ -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:' + -The 'format:' format allows you to specify which information +The 'format:' 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'. diff --git a/Documentation/pretty-options.txt b/Documentation/pretty-options.txt index af6d2b995..d78e121c7 100644 --- a/Documentation/pretty-options.txt +++ b/Documentation/pretty-options.txt @@ -3,8 +3,9 @@ Pretty-print the contents of the commit logs in a given format, where '' can be one of 'oneline', 'short', 'medium', - 'full', 'fuller', 'email', 'raw' and 'format:'. - When omitted, the format defaults to 'medium'. + 'full', 'fuller', 'email', 'raw' and 'format:'. 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]).