{"thread":{"id":"37385","subject":"[PATCH 1/1] pretty: note that %cd respects the --date= option","startedAt":"2014-08-20T12:27:10Z","lastAt":"2014-08-21T20:07:12Z","messageCount":2,"participants":["Thomas Braun","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":1},"messages":[{"id":"248016","messageId":"53F4941E.2060201@virtuell-zuhause.de","threadId":"37385","inReplyTo":null,"subject":"[PATCH 1/1] pretty: note that %cd respects the --date= option","fromName":"Thomas Braun","fromEmail":"thomas.braun@virtuell-zuhause.de","sentAt":"2014-08-20T12:27:10Z","receivedAt":"2014-08-20T12:27:10Z","isPatch":true,"sender":{"key":"thomas.braun@virtuell-zuhause.de","avatar":"https://avatars.githubusercontent.com/u/1185677?v=4"},"body":"Signed-off-by: Thomas Braun <thomas.braun@virtuell-zuhause.de>\n---\n\nToday I found out that both %cd and %ad pretty print format\nspecifications honour the --date option as shown in:\n\n$ git log --abbrev=8 --date=short --pretty=\"%h (%s, %cd)\" -n1\n5bdb1c4e (Merge pull request #245 from\nkblees/kb/master/fix-libsvn-address-conflict, 2014-08-16)\n$ git log --abbrev=8 --date=short --pretty=\"%h (%s, %ad)\" -n1\n5bdb1c4e (Merge pull request #245 from\nkblees/kb/master/fix-libsvn-address-conflict, 2014-08-16)\n\nBut the documentation did not mention that.\n\n Documentation/pretty-formats.txt | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/Documentation/pretty-formats.txt\nb/Documentation/pretty-formats.txt\nindex 85d6353..eac7909 100644\n--- a/Documentation/pretty-formats.txt\n+++ b/Documentation/pretty-formats.txt\n@@ -122,7 +122,7 @@ The placeholders are:\n - '%ce': committer email\n - '%cE': committer email (respecting .mailmap, see\n   linkgit:git-shortlog[1] or linkgit:git-blame[1])\n-- '%cd': committer date\n+- '%cd': committer date (format respects --date= option)\n - '%cD': committer date, RFC2822 style\n - '%cr': committer date, relative\n - '%ct': committer date, UNIX timestamp\n-- \n2.1.0.msysgit.0\n"},{"id":"248081","messageId":"xmqqr409r4i7.fsf@gitster.dls.corp.google.com","threadId":"37385","inReplyTo":"53F4941E.2060201@virtuell-zuhause.de","subject":"Re: [PATCH 1/1] pretty: note that %cd respects the --date= option","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2014-08-21T20:07:12Z","receivedAt":"2014-08-21T20:07:12Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Thomas Braun <thomas.braun@virtuell-zuhause.de> writes:\n\n> Signed-off-by: Thomas Braun <thomas.braun@virtuell-zuhause.de>\n> ---\n>\n> Today I found out that both %cd and %ad pretty print format\n> specifications honour the --date option as shown in:\n>\n> $ git log --abbrev=8 --date=short --pretty=\"%h (%s, %cd)\" -n1\n> 5bdb1c4e (Merge pull request #245 from\n> kblees/kb/master/fix-libsvn-address-conflict, 2014-08-16)\n> $ git log --abbrev=8 --date=short --pretty=\"%h (%s, %ad)\" -n1\n> 5bdb1c4e (Merge pull request #245 from\n> kblees/kb/master/fix-libsvn-address-conflict, 2014-08-16)\n>\n> But the documentation did not mention that.\n>\n>  Documentation/pretty-formats.txt | 2 +-\n>  1 file changed, 1 insertion(+), 1 deletion(-)\n>\n> diff --git a/Documentation/pretty-formats.txt\n> b/Documentation/pretty-formats.txt\n> index 85d6353..eac7909 100644\n> --- a/Documentation/pretty-formats.txt\n> +++ b/Documentation/pretty-formats.txt\n> @@ -122,7 +122,7 @@ The placeholders are:\n>  - '%ce': committer email\n>  - '%cE': committer email (respecting .mailmap, see\n>    linkgit:git-shortlog[1] or linkgit:git-blame[1])\n> -- '%cd': committer date\n> +- '%cd': committer date (format respects --date= option)\n\nFunny that we already have the same text for %ad.  Thanks.\n\n>  - '%cD': committer date, RFC2822 style\n>  - '%cr': committer date, relative\n>  - '%ct': committer date, UNIX timestamp\n"}]}