Re: Simplify '--prett=xyz' options
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 15, 2009, 20:16 UTC
- Message-ID
- <7viqgoestz.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <alpine.LFD.2.01.0908151236250.3162@localhost.localdomain>
Linus Torvalds <torvalds@linux-foundation.org> writes:
Show 16 quoted lines
> On Sat, 15 Aug 2009, Thomas Rast wrote: > >> Granted, it makes it equivalent to --pretty=tformat:foo, but isn't >> tformat the better choice in many cases? > > Not really. Look at what happens with > > git log --stat --pretty=format:%s > > and then try tformat instead. 'tformat' is broken, as is our current > --format=%s. > > In other words, all of that crud is totally illogical, and our "short > versions" (--oneline and --format=) were done entirely incorrectly (well, > --oneline probably has the _right_ semantics, and --pretty=oneline is just > wrong, but whatever).
If you try that without --stat, i.e.
$ git log -4 --pretty=format:%s | cat -e
$ git log -4 --pretty=tformat:%s | cat -eI suspect you may then find that --pretty=format (not --pretty=tformat) is broken.