Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-03-28 14:05:08 +0400
committerJunio C Hamano <junkio@cox.net>2007-03-28 14:34:55 +0400
commitd3e41ebff44745055001e59e460509a8f04b81a2 (patch)
tree01817a15c7963d0891f9934d651abcb36d89f666 /git-commit.sh
parentfd2a75972e90d34bc8d4bebe1d669645557a2192 (diff)
git-commit: "read-tree -m HEAD" is not the right way to read-tree quickly
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>
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 cad16a5e86..fdaedc0e2e 100755
--- a/git-commit.sh
+++ b/git-commit.sh
@@ -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