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

Can see log for a renamed file

From
EKEugen Konkov <kes-kes@yandex.ru>
Date
Apr 5, 2023, 23:16 UTC
Message-ID
<909508822.20230405191602@yandex.ru>
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>...]' ```

But if I checkout to the commit before renaming then this command works:
git log 9ce3e165f284d55503eff9b627ef3723854c53bb^ -- lib/Invoice/Schema/Result/Company.pm
I beleive it would be much handy if git checks the file after analizing of the commit 9ce3e165f284d55503eff9b627ef3723854c53bb^
Thanks
-- 
Best regards,
Eugen Konkov
Next: Jeff King
Message 1 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.