From: Linus Torvalds Date: Sun, 5 Jun 2005 21:12:53 +0000 (-0700) Subject: applypatch: use "--index" to actually make git-apply write the X-Git-Tag: v0.99.2~51^2~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f48516746fada1405e476f04bc855bf91412ed46;p=git.git applypatch: use "--index" to actually make git-apply write the changes to the index file. --- diff --git a/applypatch b/applypatch index 6db358877..789917f3c 100755 --- a/applypatch +++ b/applypatch @@ -58,7 +58,7 @@ echo echo Applying "'$SUBJECT'" echo -git-apply $PATCHFILE || exit 1 +git-apply --index $PATCHFILE || exit 1 tree=$(git-write-tree) || exit 1 echo Wrote tree $tree commit=$(git-commit-tree $tree -p $(cat .git/HEAD) < $final) || exit 1