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

Bug: git log changes output depending on how the output is used

From
Bbuckmartin <buckmartin@gmail.com>
Date
Oct 25, 2018, 15:26 UTC
Message-ID
<CAJCHkCHPpZVPX2zeHQZWGKyCpHdFFHvNqn1Db0hsAPfTdjV-+A@mail.gmail.com>
I noticed that the piped output still prints the (HEAD -> ) :
git log --pretty=format:"%d*%B" --decorate-refs='refs/tags/*'

*bar (tag: "123")*foo

git log --pretty=format:"%d*%B" --decorate-refs='refs/tags/*' > tmp.tmp

(HEAD -> branch)*bar (tag: "123")*foo

I would expect the output that is printed to console, not what's present in tmp.tmp

Message 1 of 1 in “Bug: git log changes output depending on how the output is used”
  1. buckmartinOct 25, 2018

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.