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

need help with git show :1:...

From
Llayer <layer@known.net>
Date
Apr 8, 2009, 17:41 UTC
Message-ID
<6838.1239212486@relay.known.net>

I remember this working for me in the not too distant past. I'm using git version 1.6.1.3. Perhaps it was an older version of git when it worked for me.

quadra% ls -l src/c/sock.c -rw-r--r-- 1 layer fi 57909 Mar 9 13:32 src/c/sock.c quadra% git show :2:src/c/sock.c fatal: ambiguous argument ':2:src/c/sock.c': unknown revision or path not in the working tree. Use '--' to separate paths from revisions quadra% git show :1:c/sock.c fatal: ambiguous argument ':1:c/sock.c': unknown revision or path not in the working tree. Use '--' to separate paths from revisions quadra% git show :1:sock.c fatal: ambiguous argument ':1:sock.c': unknown revision or path not in the working tree. Use '--' to separate paths from revisions quadra% git show :1:/src/c/sock.c fatal: ambiguous argument ':1:/src/c/sock.c': unknown revision or path not in the working tree. Use '--' to separate paths from revisions

If I cd to "src/c" and do "git show :1:sock.c" the same thing happens.
Thanks.
Next: Elijah Newren
Message 1 of 8 in “need help with git show :1:...”
  1. layerApr 8, 2009
  2. Elijah NewrenApr 8, 2009
  3. layerApr 8, 2009
  4. Elijah NewrenApr 8, 2009
  5. layerApr 8, 2009
  6. Elijah NewrenApr 8, 2009
  7. layerApr 8, 2009
  8. Elijah NewrenApr 8, 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.