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

inconsistency with --abbrev=0

From
Markus Heidelberg <markus.heidelberg@web.de>
Date
May 31, 2009, 15:48 UTC
Message-ID
<200905311748.00782.markus.heidelberg@web.de>
The minimum (>=4) number of chars is shown by
  git log|show|whatchanged --abbrev-commit --raw --abbrev=0
  git rev-list --abbrev-commit --abbrev=0 HEAD
  git show-ref --abbrev=0
  and the various diff commands
All 40 are shown by
  git branch -v --abbrev=0
  git ls-files --stage --abbrev=0
  git ls-tree --abbrev=0 HEAD

The latter group uses parse-options and doesn't set abbrev to 4 in this case. This is needed for git-describe to omit the output of the commit.

What should --abbrev=0 behave like?
Markus
Next: Sverre Rabbelier
Message 1 of 3 in “inconsistency with --abbrev=0”
  1. Markus HeidelbergMay 31, 2009
  2. Sverre RabbelierMay 31, 2009
  3. Markus HeidelbergJun 1, 2009

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.