Re: Simplify '--prett=xyz' options
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:47:15
Linus Torvalds [off-list ref] writes:
On Sat, 15 Aug 2009, Thomas Rast wrote:quoted
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 -e
I suspect you may then find that --pretty=format (not --pretty=tformat) is
broken.