Re: wierd git show syntax

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

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/

Re: wierd git show syntax

From: Geoff Russell <hidden>
Date: 2016-06-15 22:49:42

On Thu, Sep 30, 2010 at 10:02 PM, Matthieu Moy
[off-list ref] wrote:
Geoff Russell [off-list ref] writes:
quoted
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.
Thanks Matthieu and Tom for your explanations on this. It's clearer
now ... even if my intuition failed to match the syntax!

Cheers,
Geoff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help