From: Junio C Hamano Date: Sun, 02 May 2010 03:13:00 GMT Subject: Re: [PATCH v3 2/5] pretty: make %H/%h/etc respect --abbrev[-commit] Message-ID: <7vocgzyp1f.fsf@alter.siamese.dyndns.org> In-Reply-To: <1272656128-2002-3-git-send-email-wmpalmer@gmail.com> Will Palmer writes: > Prior to this, the output of %H was always 40 characters long, and the > output of %h always DEFAULT_ABBREV characters long, without regard to > whether --abbrev-commit or --abbrev had been passed. > > Here we make "git log --pretty=%H --abbrev-commit" synonymous with > "git log --pretty=%h", and make %h/abbreviated-%H respect the length > specified for --abbrev. I think it is a good change to make %h follow --abbrev, but %H should stay the full length no matter what (otherwise why would anybody use %H not %h?).