All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] pretty: note that %cd respects the --date= option
@ 2014-08-20 12:27 Thomas Braun
  2014-08-21 20:07 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Braun @ 2014-08-20 12:27 UTC (permalink / raw)
  To: git

Signed-off-by: Thomas Braun <thomas.braun@virtuell-zuhause.de>
---

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(-)

diff --git a/Documentation/pretty-formats.txt
b/Documentation/pretty-formats.txt
index 85d6353..eac7909 100644
--- a/Documentation/pretty-formats.txt
+++ b/Documentation/pretty-formats.txt
@@ -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
-- 
2.1.0.msysgit.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/1] pretty: note that %cd respects the --date= option
  2014-08-20 12:27 [PATCH 1/1] pretty: note that %cd respects the --date= option Thomas Braun
@ 2014-08-21 20:07 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2014-08-21 20:07 UTC (permalink / raw)
  To: Thomas Braun; +Cc: git

Thomas Braun <thomas.braun@virtuell-zuhause.de> writes:

> Signed-off-by: Thomas Braun <thomas.braun@virtuell-zuhause.de>
> ---
>
> 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(-)
>
> diff --git a/Documentation/pretty-formats.txt
> b/Documentation/pretty-formats.txt
> index 85d6353..eac7909 100644
> --- a/Documentation/pretty-formats.txt
> +++ b/Documentation/pretty-formats.txt
> @@ -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.

>  - '%cD': committer date, RFC2822 style
>  - '%cr': committer date, relative
>  - '%ct': committer date, UNIX timestamp

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-21 20:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-20 12:27 [PATCH 1/1] pretty: note that %cd respects the --date= option Thomas Braun
2014-08-21 20:07 ` Junio C Hamano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.