git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: log --pretty/--oneline: ignore log.decorate

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 8, 2010, 21:13 UTC
Message-ID
<7vtyrl4pht.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20100408194237.GA4222@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 21 quoted lines
> Subject: [PATCH] script with rev-list instead of log
>
> Because log.decorate now shows decorations for --pretty=oneline,
> we must explicitly turn it off when scripting. Otherwise,
> users with log.decorate set will get cruft like:
>
>   $ git stash
>   Saved working directory and index state WIP on master:
>     2c1f7f5 (HEAD, master) commit subject
>
> Instead of adding --no-decorate to the log command line,
> let's just use the rev-list plumbing interface instead,
> which does the right thing.
>
> git-submodule has a similar call. Since it just counts the
> commit lines, nothing is broken, but let's switch it, too,
> for the sake of consistency and cleanliness.
>
> Signed-off-by: Jeff King <peff@peff.net>
> ---
> I think these changes are Obviously Correct (tm)
Looks good; thanks.
Previous: Jeff King
Message 8 of 8 in “What's cooking in git.git (Apr 2010, #02; Sun, 04)”
  1. Junio C HamanoApr 4, 2010
  2. Michael J GruberApr 6, 2010
  3. Jeff KingApr 6, 2010
  4. log --pretty/--oneline: ignore log.decorateJunio C Hamano, Apr 6, 2010
  5. Jeff KingApr 8, 2010
  6. Junio C HamanoApr 8, 2010
  7. Jeff KingApr 8, 2010
  8. Junio C HamanoApr 8, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.