Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH 1/3] log: Show reflog date with --date=normal

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:47:07

Thomas Rast [off-list ref] 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=<foo> 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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help