git-commit: "read-tree -m HEAD" is not the right way to read-tree quickly
authorJunio C Hamano <junkio@cox.net>
Wed, 28 Mar 2007 10:05:08 +0000 (03:05 -0700)
committerJunio C Hamano <junkio@cox.net>
Wed, 28 Mar 2007 10:34:55 +0000 (03:34 -0700)
It still looks at the working tree and checks for locally
modified paths.  When are preparing a temporary index from HEAD,
we do not want any of that.

Signed-off-by: Junio C Hamano <junkio@cox.net>
git-commit.sh

index cad16a5e868730dd56f79baf711aed138d7cafe1..fdaedc0e2e6bcfd33816e3c165fbd5ae48e27eee 100755 (executable)
@@ -360,7 +360,7 @@ t,)
                if test -z "$initial_commit"
                then
                        cp "$THIS_INDEX" "$TMP_INDEX"
-                       GIT_INDEX_FILE="$TMP_INDEX" git-read-tree -m HEAD
+                       GIT_INDEX_FILE="$TMP_INDEX" git-read-tree -i -m HEAD
                else
                        rm -f "$TMP_INDEX"
                fi || exit