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

Re: Can see log for a renamed file

From
Jeff King <peff@peff.net>
Date
Apr 6, 2023, 03:59 UTC
Message-ID
<20230406035953.GB2092667@coredump.intra.peff.net>
In-Reply-To
<909508822.20230405191602@yandex.ru>
On Wed, Apr 05, 2023 at 07:16:02PM -0400, Eugen Konkov wrote:
Show 8 quoted lines
> Hello, folks.
> 
> ```
> git log 9ce3e165f284d55503eff9b627ef3723854c53bb^ -- lib/Invoice/Schema/Result/Company.pm
> fatal: ambiguous argument 'lib/Invoice/Schema/Result/Company.pm': unknown revision or path not in the working tree.
> Use '--' to separate paths from revisions, like this:
> 'git <command> [<revision>...] -- [<file>...]'
> ```

Are you sure you've cut and paste accurately here? You _do_ have a "--" in the command you showed, so it should not print the "ambiguous argument" error. It should behave exactly as you're expecting (accepting the path as-is).

If that is what you typed, then something very funny is going on in your Git build, where it is ignoring some arguments. Is "git" a wrapper script or something?

-Peff
Previous: Eugen Konkov
Message 2 of 2 in “Can see log for a renamed file”
  1. Eugen KonkovApr 5, 2023
  2. Jeff KingApr 6, 2023

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.