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

[POSSIBLE BUG] 'git log' option --no-color adds bogus empty line

From
MCMarco Costalba <mcostalba@gmail.com>
Date
Oct 27, 2007, 09:10 UTC
Message-ID
<e5bfff550710270210g6d363b40of597c3160124fb85@mail.gmail.com>
Form git tree:
$ git log -n 1 8d863c98b2f9b0d37 | wc
      7      28     246
$ git log --no-color -n 1 8d863c98b2f9b0d37 | wc
      8      28     247

$ git --version git version 1.5.3.2.124.g648db

What's worst is that when using --log-size option, the size is always the same (198 in this case) breaking qgit parsing when --no-color option is used.

BTW --no-color option is needed to correctly handle repositories where "diff.color = true" in the configuration as pointed out (and patched) by Yaacov Akiba Slama.

Thanks Marco

Next: Johannes Gilger
Message 1 of 3 in “[POSSIBLE BUG] 'git log' option --no-color adds bogus empty line”
  1. Marco CostalbaOct 27, 2007
  2. Johannes GilgerOct 27, 2007
  3. Marco CostalbaOct 27, 2007

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.