Re: [PATCH v3 2/5] pretty: make %H/%h/etc respect --abbrev[-commit]

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

 



Junio C Hamano wrote:
> Will Palmer <wmpalmer@xxxxxxxxx> writes:

>> If the current behaviour is actually intentional, we should at least
>> update the documentation to say that %H is the "full commit hash",
>> rather than just the "commit hash".
>
> I think it was obvious from the context that lists %H and %h next to each
> other, with description without "abbreviated" and with "abbreviated" to
> them.  The description for %H should be rewritten as "commit object name"
> and %h "abbreviated commit object name".

FWIW, this is why I suggested updating the documentation.  I think the
“%H becomes %h in the presence of --abbrev-commit” behavior would be
more useful in practice.

But I am not fanatical about it.  Maybe this functionality should get
some other letter and I would just not use %H.

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