Re: [PATCH] show_date(): rename the "relative" parameter to "mode"

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

 




On Tue, 27 Feb 2007, Junio C Hamano wrote:
> 
> How about --ago as a synonym, and --my-date for obeying TZ?
> "show in UTC time" can be had by something like:
> 
> 	$ TZ=UTC git log --my-date

Yes, although I would suggest that at that point we also use a shorter 
date format, since the timezone (by definition) is no longer valid or 
interesting.

But in general, there are other date issues - if we start showing the date 
in other non-rfc2822 formats (like skipping the timezone), we migth as 
well also support denser times..

For example, I occasionally love seeing the seconds, especially when I 
apply a series of patches from Andrew, and I see myself committing 5-6 
patches per second - but it's just noise if you want a single-line thing. 
So showing dates as "yyyy-mm-dd hh:mm" makes sense (and sorts properly).

So instead of "--my-date", I'd suggest "--date[-format]=xyz" as an option, 
possibly even with a way to set some defaults for "git log" using the 
config file. 

		Linus
-
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]