Re: lstat() call in rev-parse.c
- From
- Matthias Lederhofer <matled@gmx.net>
- Date
- Apr 26, 2006, 15:28 UTC
- Message-ID
- <E1FYlwn-0005mf-CL@moooo.ath.cx>
- In-Reply-To
- <Pine.LNX.4.64.0604230906370.3701@g5.osdl.org>
> So the rule is: if you don't give that "--", then we have to be able to > confirm that the filenames are really files. Not a misspelled revision > name, or a revision name that was correctly spelled, but for the wrong > project, because you were in the wrong subdirectory ;)
Shouldn't git rev-parse try to stat the file (additionally?) in the current directory instead of the top git directory? git (diff|log|..) seem to fail everytime in a subdirectory without --.