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

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

 



Thomas Rast <trast@xxxxxxxxxxxxxxx> 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.
--
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]