summaryrefslogtreecommitdiff
path: root/git-resolve-script
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-07-09 00:38:44 (GMT)
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-09 00:38:44 (GMT)
commit3ba513c32e7b9102187d94d1c43f33d9559fb334 (patch)
tree8121f48b07e68ea9fb3e5c1c7b6d4b68b915bca5 /git-resolve-script
parent69a97f1d9bb9455b634564e91f33479ffc35c02b (diff)
downloadgit-3ba513c32e7b9102187d94d1c43f33d9559fb334.zip
git-3ba513c32e7b9102187d94d1c43f33d9559fb334.tar.gz
git-3ba513c32e7b9102187d94d1c43f33d9559fb334.tar.bz2
Make "git resolve" take the merge message in $3
It used to do "Merge $3" as the message, but that ends up being inconvenient, and much more easily done inside git-pull-script instead. This makes the third argument to "git resolve" much easier to explain.
Diffstat (limited to 'git-resolve-script')
-rwxr-xr-xgit-resolve-script7
1 files changed, 3 insertions, 4 deletions
diff --git a/git-resolve-script b/git-resolve-script
index 03c15a9..fffcb07 100755
--- a/git-resolve-script
+++ b/git-resolve-script
@@ -8,7 +8,7 @@
head=$(git-rev-parse --revs-only "$1")
merge=$(git-rev-parse --revs-only "$2")
-merge_repo="$3"
+merge_msg="$3"
dropheads() {
rm -f -- "$GIT_DIR/MERGE_HEAD" \
@@ -19,8 +19,8 @@ dropheads() {
# The remote name is just used for the message,
# but we do want it.
#
-if [ -z "$head" -o -z "$merge" -o -z "$merge_repo" ]; then
- die "git-resolve-script <head> <remote> <merge-repo-name>"
+if [ -z "$head" -o -z "$merge" -o -z "$merge_msg" ]; then
+ die "git-resolve-script <head> <remote> <merge-message>"
fi
dropheads
@@ -47,7 +47,6 @@ if [ "$common" == "$head" ]; then
fi
echo "Trying to merge $merge into $head"
git-read-tree -u -m $common $head $merge || exit 1
-merge_msg="Merge $merge_repo"
result_tree=$(git-write-tree 2> /dev/null)
if [ $? -ne 0 ]; then
echo "Simple merge failed, trying Automatic merge"