author | Linus Torvalds <torvalds@osdl.org> | |
Fri, 21 Oct 2005 00:16:30 +0000 (17:16 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 21 Oct 2005 05:32:07 +0000 (22:32 -0700) | ||
commit | a08b6505942c3c7137f8fb7516a2d5bc54153997 | |
tree | bc8e090e87216e83ecd05d7f7716efe79f430614 | tree | snapshot |
parent | adc3dbca1aed4e8b25dd9b77463bbe87f7e86b94 | commit | diff |
git-rev-parse: pass on "--" flag when required
If rev-parse output includes both flags and files, we should pass on any
"--" marker we see, so that the end result can also tell the difference
between a flag and a filename that begins with '-'.
[jc: merged a later one liner updates from Linus]
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
If rev-parse output includes both flags and files, we should pass on any
"--" marker we see, so that the end result can also tell the difference
between a flag and a filename that begins with '-'.
[jc: merged a later one liner updates from Linus]
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
rev-parse.c | diff | blob | history |