Git development
 help / color / mirror / Atom feed
* ':/<oneline prefix>' notation doesn't support full file syntax
@ 2008-07-03  5:42 Eric Raible
  2008-07-03  8:34 ` Junio C Hamano
  2008-07-03 10:47 ` Jeff King
  0 siblings, 2 replies; 9+ messages in thread
From: Eric Raible @ 2008-07-03  5:42 UTC (permalink / raw)
  To: git; +Cc: Johannes.Schindelin

Although the rev-parse documentation claims that the
tree-ish:path/to/file syntax works is applicable, this is
not so when using the :/ "oneline prefix" syntax:

% git rev-parse v1.5.0.1-227-g28a4d94
28a4d940443806412effa246ecc7768a21553ec7
% git rev-parse ":/object name"
28a4d940443806412effa246ecc7768a21553ec7

% git rev-parse v1.5.0.1-227-g28a4d94:sha1_name.c
0781477a71ac4d76a1b8783868d6649cae7f8507
% git rev-parse ":/object name":sha1_name.c
:/object name:sha1_name.c
fatal: ambiguous argument ':/object name:sha1_name.c': unknown
revision or path not in the working tree.
Use '--' to separate paths from revisions

A quick look at int sha1_name.c:get_sha1() shows that it doesn't
even try to make this work.  Is this worth fixing?
Or at least documenting?

- Eric

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

end of thread, other threads:[~2008-07-04  0:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-03  5:42 ':/<oneline prefix>' notation doesn't support full file syntax Eric Raible
2008-07-03  8:34 ` Junio C Hamano
2008-07-03  8:50   ` Eric Raible
2008-07-03 12:38     ` Johannes Schindelin
2008-07-03 18:27     ` Dana How
2008-07-03 21:26       ` Junio C Hamano
2008-07-04  0:14         ` Johannes Schindelin
2008-07-04  0:33       ` Johannes Schindelin
2008-07-03 10:47 ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox