Re: wierd git show syntax
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Sep 30, 2010, 11:32 UTC
- Message-ID
- <vpqtyl7fovk.fsf@bauges.imag.fr>
- In-Reply-To
- <AANLkTi=Zz-1dSC0imJ3NZXWcdvhXWXt-Kk94zwKe8+6Y@mail.gmail.com>
Geoff Russell <geoffrey.russell@gmail.com> writes:
Show 7 quoted lines
> 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/