git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* wierd git show syntax
@ 2010-09-30  5:02 Geoff Russell
  2010-09-30  8:46 ` Tomas Carnecky
  2010-09-30 11:32 ` Matthieu Moy
  0 siblings, 2 replies; 5+ messages in thread
From: Geoff Russell @ 2010-09-30  5:02 UTC (permalink / raw)
  To: git

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 '--'. Okay so I try that:

$ git show -- XXXX:data/path/object.c

But it gives me nothing

$ git show XXXX -- data/path/object.c

Gives me a git diff output for the object.


This is all with git 1.6.2.3

What's happening here? Why aren't all these equivalent?


Cheers,
Geoff Russell

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-10-04 22:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-30  5:02 wierd git show syntax Geoff Russell
2010-09-30  8:46 ` Tomas Carnecky
2010-09-30  9:02   ` Tomas Carnecky
2010-09-30 11:32 ` Matthieu Moy
2010-10-04 22:32   ` Geoff Russell

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).