aboutsummaryrefslogtreecommitdiff
path: root/git-commit.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-09-14 16:53:58 -0700
committerJunio C Hamano <gitster@pobox.com>2007-09-17 23:57:35 -0700
commitcba8d4896187abedd9c35936504b7254a2ecbd91 (patch)
tree0bcdd7d7d7ed7a2fe7c547c1f7c27a029e83c559 /git-commit.sh
parent64586e75af3c84844b80652575a8b63a9612b24a (diff)
downloadgit-cba8d4896187abedd9c35936504b7254a2ecbd91.tar.gz
git-cba8d4896187abedd9c35936504b7254a2ecbd91.tar.xz
git-commit: partial commit of paths only removed from the index
Because a partial commit is meant to be a way to ignore what are staged in the index, "git rm --cached A && git commit A" should just record what is in A on the filesystem. The previous patch made the command sequence to barf, saying that A has not been added yet. This fixes it. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-commit.sh')
-rwxr-xr-xgit-commit.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-commit.sh b/git-commit.sh
index 5ea3fd007..bb113e858 100755
--- a/git-commit.sh
+++ b/git-commit.sh
@@ -404,7 +404,7 @@ t,)
(
GIT_INDEX_FILE="$NEXT_INDEX"
export GIT_INDEX_FILE
- git update-index --remove --stdin
+ git update-index --add --remove --stdin
) || exit
;;
esac