Re: [PATCH] log --oneline: put decoration at the end of the line
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 19, 2012, 19:57 UTC
- Message-ID
- <7vr4pxg507.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20120919182039.GE11699@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 6 quoted lines
> We should also consider briefly whether anybody is relying on --oneline > for machine parsing. I think "log --oneline" is fair game, but I wonder > if people calling "rev-list --decorate --oneline" should be considered. > It seems kind of unlikely to me, considering that the decorate output is > ambiguous to parse anyway (if you see parentheses, you cannot tell if it > is decorate output or part of the commit subject).
Yeah, I do not think it is likely. Among the in-tree scripts, git-stash does use rev-list --oneline but the purpose of the call exactly is to grab a human readable one line summary, and it will be happy with any change to make --oneline more human readble.
t4202 has many invocations of "log --oneline --decorate", though; these things do get tested.