From: Jonathan Nieder Date: Sun, 02 May 2010 09:17:20 GMT Subject: Re: [PATCH v3 2/5] pretty: make %H/%h/etc respect --abbrev[-commit] Message-ID: <20100502091720.GB1854@progeny.tock> In-Reply-To: <7vaasiwtvt.fsf@alter.siamese.dyndns.org> Junio C Hamano wrote: > Will Palmer 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