summaryrefslogtreecommitdiff
path: root/git-resolve-script
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-09-02 15:32:55 -0700
committerJunio C Hamano <junkio@cox.net>2005-09-02 15:32:55 -0700
commit8afaf4cbefc735d71d1417a74b9cc20b0e3c6770 (patch)
tree6b69c478f0570cff1231b9fe3462c50062860ec4 /git-resolve-script
parent80b52b0f9d04fa0b8863fef2beef937ee1a486ae (diff)
parent953e5842f8fcd40c3e7013a9793746719016db1b (diff)
downloadgit-8afaf4cbefc735d71d1417a74b9cc20b0e3c6770.tar.gz
Merge branch 'master' of .
Diffstat (limited to 'git-resolve-script')
-rwxr-xr-xgit-resolve-script10
1 files changed, 6 insertions, 4 deletions
diff --git a/git-resolve-script b/git-resolve-script
index 7c0e3d8aa8..000cbb85e3 100755
--- a/git-resolve-script
+++ b/git-resolve-script
@@ -36,19 +36,21 @@ if [ -z "$common" ]; then
die "Unable to find common commit between" $merge $head
fi
-if [ "$common" == "$merge" ]; then
+case "$common" in
+"$merge")
echo "Already up-to-date. Yeeah!"
dropheads
exit 0
-fi
-if [ "$common" == "$head" ]; then
+ ;;
+"$head")
echo "Updating from $head to $merge."
git-read-tree -u -m $head $merge || exit 1
echo $merge > "$GIT_DIR"/HEAD
git-diff-tree -p $head $merge | git-apply --stat
dropheads
exit 0
-fi
+ ;;
+esac
# Find an optimum merge base if there are more than one candidates.
LF='