Re: [Bug] git-log prints wrong unixtime with --date=format:%s

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

 



On Thu, May 19, 2016 at 01:05:28AM +0200, Michael Heerdegen wrote:

> Jeff King <peff@xxxxxxxx> writes:
> 
> >   3. The epoch times for the latter lines should match.
> 
> FWIW, I think the epoch time is the most practical way to transfer the
> time of a commit into a different program.  When this program wants to
> do it's own date arithmetic with it, unix time is just nice (no time
> format parsing needed).
> 
> That's why it would be good if the unix time values could be relied on.

Oh, I agree that unix times are handy. I just think that "use %at in the
pretty-format, instead of %ad and then %s in the date-format" is not
such a bad workaround.

> Conclusion: in addition to 3., I wished both epoch times were also
> correct per se.

The %at one should be correct, no? If it's not, that's a separate bug.

-Peff
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]