summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 31b6d20)
raw | patch | inline | side by side (parent: 31b6d20)
author | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Mon, 20 Jun 2005 02:42:21 +0000 (19:42 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Mon, 20 Jun 2005 02:42:21 +0000 (19:42 -0700) |
Otherwise you'll be bitten by a stale MERGE_HEAD like Jeff was..
git-resolve-script | patch | blob | history |
diff --git a/git-resolve-script b/git-resolve-script
index 0b04a5f6af8b97065cfe812509f2d96a600825ab..007e29a2edd64c4f103397bd62b5c33f98ff8382 100755 (executable)
--- a/git-resolve-script
+++ b/git-resolve-script
if [ "$common" == "$merge" ]; then
echo "Already up-to-date. Yeeah!"
+ rm -f -- "$GIT_DIR/ORIG_HEAD" "$GIT_DIR/MERGE_HEAD"
exit 0
fi
if [ "$common" == "$head" ]; then
git-read-tree -u -m $head $merge || exit 1
echo $merge > "$GIT_DIR"/HEAD
git-diff-tree -p ORIG_HEAD HEAD | git-apply --stat
+ rm -f -- "$GIT_DIR/ORIG_HEAD" "$GIT_DIR/MERGE_HEAD"
exit 0
fi
echo "Trying to merge $merge into $head"
echo "Committed merge $result_commit"
echo $result_commit > "$GIT_DIR"/HEAD
git-diff-tree -p $head $result_commit | git-apply --stat
-rm $GIT_DIR/ORIG_HEAD $GIT_DIR/MERGE_HEAD
+rm -f -- "$GIT_DIR/ORIG_HEAD" "$GIT_DIR/MERGE_HEAD"