]> git.xonotic.org Git - xonotic/div0-gittools.git/blobdiff - git-branch-manager
call merge tool properly
[xonotic/div0-gittools.git] / git-branch-manager
index 23a38fbd5b672681b2348e3bf937fa7a3494ad72..2d319857a9024d2ef0e470442c09873601785af4 100755 (executable)
@@ -147,7 +147,9 @@ sub merge_commit($)
        if($do_commit)
        {
                run 'git', 'commit', '-F', '.commitmsg'
-                       or die "git-commit: $!";
+                       or (run 'git', 'mergetool'
+                               and run 'git', 'commit', '-F', '.commitmsg')
+                                       or die "git-commit: $!";
        }
 }
 
@@ -197,7 +199,9 @@ sub unmerge_commit($)
        if($do_commit)
        {
                run 'git', 'commit', '-F', '.commitmsg'
-                       or die "git-commit: $!";
+                       or (run 'git', 'mergetool'
+                               and run 'git', 'commit', '-F', '.commitmsg')
+                                       or die "git-commit: $!";
        }
 }