Re: [PATCH 2/2] pretty=format: Add %d to show decoration
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 10, 2008, 08:39 UTC
- Message-ID
- <7v1w5exfwb.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <alpine.DEB.1.00.0804071441040.430@eeepc-johanness>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 9 quoted lines
> With this patch, "git log --decorate --pretty=format:%d", shows the > name decoration (i.e. whenever a commit matches a ref, that ref's name > is shown). > > Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> > --- > > Maybe %d should expand to " (<name decoration>)" instead of > "<name decoration>"?
Not necessarily. %d in --pretty="format:%h%d %s" may want to expand to "(<name>) " instead of " (<name>)".