Re: wierd git show syntax
From: Matthieu Moy <hidden>
Date: 2016-06-15 22:49:39
Geoff Russell [off-list ref] writes:
Hi, $ git show XXXX:data/path/object.c Gives me what I want, a cat of the objects contents. However for some files I get a message about ambiguous argument telling me to separate paths from revisions with '--'.
This happens if data/path/object.c doesn't exist in XXXX. A common mistake is to write XXXX:relative/path when Git expects a path relative to the tree root. Git >= 1.7 would give you a more friendly error message in this case. -- Matthieu Moy http://www-verimag.imag.fr/~moy/