From: Junio C Hamano Date: Thu, 15 Jan 2015 19:25:47 GMT Subject: Re: cosmetic bug: "git show --pretty:format" produces different output than "git show --format" Message-ID: In-Reply-To: <54B7E98B.6020907@drmicha.warpmail.net> Michael J Gruber writes: > The first part of the man page is a bit sloppy, but refers to the FORMAT > section. There, it says that "--pretty" is equivalent to > "--pretty=tformat:" which is different from "--pretty=format:". It is indeed sloppy. It says --(pretty|format)= can take these canned s or 'format:', but - it does not say it can also take 'tformat:' at all; and - it does not say a that is none of the above is dwimmed with 'tformat:' prefixed. Perhaps something like this is needed. Documentation/pretty-options.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Documentation/pretty-options.txt b/Documentation/pretty-options.txt index 8569e29..7e17af9 100644 --- a/Documentation/pretty-options.txt +++ b/Documentation/pretty-options.txt @@ -3,9 +3,13 @@ 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:'. See - the "PRETTY FORMATS" section for some additional details for each - format. When omitted, the format defaults to 'medium'. + 'full', 'fuller', 'email', 'raw', 'format:' + and 'tformat:'. When '' is none of the above, + acts as if '--pretty=tformat:' were given. ++ +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]).