From: Junio C Hamano Date: Tue, 28 Jul 2009 17:05:34 GMT Subject: Re: [PATCH 1/3] log: Show reflog date with --date=normal Message-ID: <7vr5w07n6p.fsf@alter.siamese.dyndns.org> In-Reply-To: <1e2f7d731286d99b74cc9af37beb5fe187e9d460.1248770042.git.trast@student.ethz.ch> Thomas Rast writes: > The reflog case special-cases --date=default (internally DATE_NORMAL) > to show the entry number instead of a date. This means it is > impossible to show the default date format for the reflog entries. Isn't it the other way around? Traditionally you wrote $ git show -g @{0} $ git show -g @{now} to explicitly ask for either time or number, but without @{which}, the presense of --date= for some unknown reason declares that you want time for reflogs, too. I personally think that is an insane behaviour, but that is probably already stuck in people's fingers. $ git show -g --date=short master $ git show -g --date=short master@{0} $ git show -g --date=short master@{now} I think what is broken, if anything, is the second case (i.e. with --date, you cannot even ask for entry numbers). You can get times in default date formats just fine.