pretty: note that %cd respects the --date= option
PATCH 1/1 pretty: note that %cd respects the --date= option
Signed-off-by Thomas Braun <[email protected]>
---
Today I found out that both %cd and %ad pretty print format specifications honour the --date option as shown in:
$ git log --abbrev=8 --date=short --pretty="%h (%s, %cd)" -n1 5bdb1c4e (Merge pull request #245 from kblees/kb/master/fix-libsvn-address-conflict, 2014-08-16) $ git log --abbrev=8 --date=short --pretty="%h (%s, %ad)" -n1 5bdb1c4e (Merge pull request #245 from kblees/kb/master/fix-libsvn-address-conflict, 2014-08-16)
But the documentation did not mention that.
Documentation/pretty-formats.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0
b/Documentation/pretty-formats.txt
index 85d6353..eac7909 100644
Documentation/pretty-formats.txt +1 -1
@@ -122,7 +122,7 @@ The placeholders are: - '%ce': committer email - '%cE': committer email (respecting .mailmap, see linkgit:git-shortlog[1] or linkgit:git-blame[1]) -- '%cd': committer date +- '%cd': committer date (format respects --date= option) - '%cD': committer date, RFC2822 style - '%cr': committer date, relative - '%ct': committer date, UNIX timestamp
Signature · 1 line
2.1.0.msysgit.0
Quoted 24 lines · Thomas Braun
Signed-off-by Thomas Braun <[email protected]>---
Today I found out that both %cd and %ad pretty print format specifications honour the --date option as shown in:
$ git log --abbrev=8 --date=short --pretty="%h (%s, %cd)" -n1 5bdb1c4e (Merge pull request #245 from kblees/kb/master/fix-libsvn-address-conflict, 2014-08-16) $ git log --abbrev=8 --date=short --pretty="%h (%s, %ad)" -n1 5bdb1c4e (Merge pull request #245 from kblees/kb/master/fix-libsvn-address-conflict, 2014-08-16)But the documentation did not mention that.
Documentation/pretty-formats.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/pretty-formats.txt +0
-0
Documentation/pretty-formats.txt The placeholders are: · line 125
Quoted 5 lines
Documentation/pretty-formats.txt +1
-1@@ -122,7 +122,7 @@ The placeholders are: - '%ce': committer email - '%cE': committer email (respecting .mailmap, see linkgit:git-shortlog[1] or linkgit:git-blame[1]) -- '%cd': committer date +- '%cd': committer date (format respects --date= option)
Funny that we already have the same text for %ad. Thanks.
Quoted 3 lines
Documentation/pretty-formats.txt +0
-0- '%cD': committer date, RFC2822 style - '%cr': committer date, relative - '%ct': committer date, UNIX timestamp