* Can see log for a renamed file
@ 2023-04-05 23:16 Eugen Konkov
2023-04-06 3:59 ` Jeff King
0 siblings, 1 reply; 2+ messages in thread
From: Eugen Konkov @ 2023-04-05 23:16 UTC (permalink / raw)
To: Git Mailing List
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Can see log for a renamed file
2023-04-05 23:16 Can see log for a renamed file Eugen Konkov
@ 2023-04-06 3:59 ` Jeff King
0 siblings, 0 replies; 2+ messages in thread
From: Jeff King @ 2023-04-06 3:59 UTC (permalink / raw)
To: Eugen Konkov; +Cc: Git Mailing List
On Wed, Apr 05, 2023 at 07:16:02PM -0400, Eugen Konkov wrote:
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-04-06 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-05 23:16 Can see log for a renamed file Eugen Konkov
2023-04-06 3:59 ` Jeff King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).