Re: [PATCH v3 2/5] pretty: make %H/%h/etc respect --abbrev[-commit]
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 2, 2010, 03:13 UTC
- Message-ID
- <7vocgzyp1f.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1272656128-2002-3-git-send-email-wmpalmer@gmail.com>
Will Palmer <wmpalmer@gmail.com> writes:
Show 7 quoted lines
> 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?).