git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* lstat() call in rev-parse.c
@ 2006-04-23 12:03 Paul Mackerras
  2006-04-23 16:19 ` Linus Torvalds
  0 siblings, 1 reply; 8+ messages in thread
From: Paul Mackerras @ 2006-04-23 12:03 UTC (permalink / raw)
  To: git

Why does git-rev-parse do an lstat on some of its arguments, at line
345 of rev-parse.c, and die if the lstat fails?  It doesn't seem to do
anything with the result.

The effect is that if you do "gitk a b", it works as long as a and b
exist (as files or directories), but fails if they don't, and some
users have found this confusing.  Yes they should put in a --, but
it's not obvious to users why this should make it work in the case
when a or b doesn't exist.

(And yes I just took out the git-rev-parse call from gitk, but I'm
going to need to do git-rev-parse --no-refs --no-flags for some
changes I'm doing at the moment.)

Paul.

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

end of thread, other threads:[~2006-04-26 18:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-23 12:03 lstat() call in rev-parse.c Paul Mackerras
2006-04-23 16:19 ` Linus Torvalds
2006-04-24 23:23   ` Paul Mackerras
2006-04-26 15:28   ` Matthias Lederhofer
2006-04-26 15:43     ` Linus Torvalds
2006-04-26 17:15       ` [PATCH] Fix filename verification when in a subdirectory Linus Torvalds
2006-04-26 18:05         ` Timo Hirvonen
2006-04-26 18:14           ` Linus Torvalds

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