add UTC option for pretty-formats

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

add UTC option for pretty-formats

From: Jeff Carr <hidden>
Date: 2016-06-15 22:49:54

Adds displaying author and commit times in UTC using %au and %cu.

Re: add UTC option for pretty-formats

From: Jonathan Nieder <hidden>
Date: 2016-06-15 22:49:59

Hi Jeff,

Jeff Carr wrote:
quoted hunk
--- a/Documentation/pretty-formats.txt
+++ b/Documentation/pretty-formats.txt
@@ -114,6 +114,7 @@ The placeholders are:
 - '%ar': author date, relative
 - '%at': author date, UNIX timestamp
 - '%ai': author date, ISO 8601 format
+- '%au': author date, UTC
Why not:

	TZ=UTC git log --format=%ad --date=local

or something like:

	git log --format=%AD(rfc2822,tz=UTC)

?  In other words, why should we provide this feature with date=rfc
dates and not date=iso ones?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help