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

[BUG] 'git show' gives duplicate errors for ambiguous args

From
Ori Avtalion <ori@avtalion.name>
Date
Sep 8, 2012, 18:43 UTC
Message-ID
<504B91B7.1000406@avtalion.name>
With the git.git repository:
  $ git show abcd
  error: short SHA1 abcd is ambiguous.
  error: short SHA1 abcd is ambiguous.
  fatal: ambiguous argument 'abcd': unknown revision or path not in the
working tree.
  Use '--' to separate paths from revisions
The "is ambiguous" message shouldn't be shown twice.

The first error is printed by revision.c:1796 (a call to handle_revision_arg), and the second by revision.c:1808 (a call to verify_filename). I don't see an easy way to suppress it.

Message 1 of 1 in “[BUG] 'git show' gives duplicate errors for ambiguous args”
  1. Ori AvtalionSep 8, 2012

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.