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

Re: ':/<oneline prefix>' notation doesn't support full file syntax

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 3, 2008, 08:34 UTC
Message-ID
<7vfxqr2won.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<279b37b20807022242q69ad2fcbwb8c11a9d6165272d@mail.gmail.com>
"Eric Raible" <raible@gmail.com> writes:
Show 8 quoted lines
> % git rev-parse ":/object name":sha1_name.c
> :/object name:sha1_name.c
> fatal: ambiguous argument ':/object name:sha1_name.c': unknown
> revision or path not in the working tree.
> Use '--' to separate paths from revisions
>
> A quick look at int sha1_name.c:get_sha1() shows that it doesn't
> even try to make this work.  Is this worth fixing?

Is there anything to fix? In that example, you are looking for a commit that talks about "object name:sha1_name.c" in the comment.

Previous: Eric RaibleNext: Eric Raible
Message 2 of 9 in “':/<oneline prefix>' notation doesn't support full file syntax”
  1. Eric RaibleJul 3, 2008
  2. Junio C HamanoJul 3, 2008
  3. Eric RaibleJul 3, 2008
  4. Johannes SchindelinJul 3, 2008
  5. Dana HowJul 3, 2008
  6. Junio C HamanoJul 3, 2008
  7. Johannes SchindelinJul 4, 2008
  8. Johannes SchindelinJul 4, 2008
  9. Jeff KingJul 3, 2008

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.