Thread (4 messages) flat view 4 messages, 3 authors, 2016-06-15

Re: Simplify '--prett=xyz' options

From: Avery Pennarun <hidden>
Date: 2016-06-15 22:47:15

On Sat, Aug 15, 2009 at 4:36 PM, Linus
Torvalds[off-list ref] wrote:
On Sat, 15 Aug 2009, Junio C Hamano wrote:
quoted
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.
I disagree. The real brokenness is that we don't have any way to say "I
want no newline at all after the format", and then having this mixup with
the whole "terminator" thing - sometimes it's "between commits" (which is
_correct_ any time you have stat info or something), and sometimes it's
"after header" (which is almost always incorrect).
I'm guessing that "after header" was just an implementation error.  It
was presumably intended to be "after commit", so that the only
difference between format and tformat is the presence or absence of
the very last terminator.

Maybe the correct fix is just to make tformat not broken?

Avery
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help