emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Everyone, please stop making my life more difficult


From: David Kastrup
Subject: Re: Everyone, please stop making my life more difficult
Date: Fri, 12 Sep 2014 21:28:44 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> From: David Kastrup <address@hidden>
>> Date: Fri, 12 Sep 2014 17:53:34 +0200
>> 
>> >> git show --date=raw
>> >
>> > This shows the author's timestamp, not the committer's one, right?
>> 
>> It shows what you tell it to show elsewhere.  For example, with
>> 
>> git show --pretty=fuller --date=raw
>> 
>> it shows both.  With --date=raw --pretty='format:...' it shows the
>> fields specified in the format.
>
> When I use --format='%ci', it doesn't seem to be affected by
> --date=raw, which is consistent with the documentation as I understand
> it.

So why would you use %ci then?

           ·   %cd: committer date

           ·   %cD: committer date, RFC2822 style

           ·   %cr: committer date, relative

           ·   %ct: committer date, UNIX timestamp

           ·   %ci: committer date, ISO 8601 format

It seems obvious that all commit date specifiers apart from %cd use a
fixed format.  And %ct will output the timestamp format.

-- 
David Kastrup



reply via email to

[Prev in Thread] Current Thread [Next in Thread]