author | Linus Torvalds <torvalds@osdl.org> | |
Tue, 18 Oct 2005 07:16:45 +0000 (00:16 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 18 Oct 2005 07:16:45 +0000 (00:16 -0700) | ||
commit | 694a764fc2af9463c2462ab1fc92b442fce1a54c | |
tree | 51baefcfe6bfd4fd77e8b6bdbb9baa412d6c7a47 | tree | snapshot |
parent | ea51d416c02bb26e9d7600f87b27deb42752e6b5 | commit | diff |
Handle "-" at beginning of filenames, part 3
This fixes the default built-in exec() of "diff" to add a "--" before the
filenames, so that if a filename starts with a "-", the diff program won't
think it's an option.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This fixes the default built-in exec() of "diff" to add a "--" before the
filenames, so that if a filename starts with a "-", the diff program won't
think it's an option.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
diff.c | diff | blob | history |