Consider a git repository, where a file was once deleted.
git rm path/to/file
git commit -a -m\"testing\"
Ok, now I want to see the g
there never was a tag by that name.
Why do you say that? git tag path/to/file
works just fine.
It really is as simple as it looks: git rm
takes pathnames only; git log
takes ref names and path names, refnames first, and anything that could be a pathname could also be a ref name -- this isn't so much a rule for what could be a ref name as the definition.
On small projects it'd be easy for git log to decide that if it's valid at all it has to have been a path to a source file at some point, but at this point you have to make a judgement call balancing the likelihood and cost of all the possible screwups here. Is it likelier that you're asking for the logs for a file that no longer exists, or that you fatfingered an existing path name or an existing ref? git log remote/ref
is very common. I think git's just presuming a name that matches nothing current is likeliest to be a typo.