author | Junio C Hamano <junkio@cox.net> | |
Mon, 3 Oct 2005 19:44:48 +0000 (12:44 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 5 Oct 2005 00:04:44 +0000 (17:04 -0700) | ||
commit | 4b12dae69a41471e7c8139de26c1135f7ecccbd8 | |
tree | 8843ecb5e7d40236047b1364ffbd65233f666769 | tree | snapshot |
parent | 64a2228b02594d5ccb7aaca293816f571fd1ea84 | commit | diff |
Return error when not checking out an entry due to dirtiness.
Without -f flag, 'git-checkout-index foo.c' issued an error message
when foo.c already existed in the working tree and did not match index.
However it did not return an error from the underlying checkout_entry()
function and resulted in a successful exit(0).
Signed-off-by: Junio C Hamano <junkio@cox.net>
Without -f flag, 'git-checkout-index foo.c' issued an error message
when foo.c already existed in the working tree and did not match index.
However it did not return an error from the underlying checkout_entry()
function and resulted in a successful exit(0).
Signed-off-by: Junio C Hamano <junkio@cox.net>
checkout-index.c | diff | blob | history | |
entry.c | diff | blob | history |