diff options
author | Fredrik Kuivinen <freku045@student.liu.se> | 2005-12-03 13:40:21 +0300 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-12-03 23:28:52 +0300 |
commit | 4275df517022604f5c33ba05ae45a885b84e3472 (patch) | |
tree | 08dc35c3961c38ac1522b6ec2e7d7ff803291e50 /git-merge.sh | |
parent | 56b5e946f2ba4fd57bbe14f9e3ec2e0ae314d5e6 (diff) |
git-merge: Exit with code 2 if no strategy was able to handle the merge.
This way it is possible to test in scripts if the merge was non-clean
or if the strategy had other problems with the merge.
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-merge.sh')
-rwxr-xr-x | git-merge.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/git-merge.sh b/git-merge.sh index d352a3cf65..a221daa7f4 100755 --- a/git-merge.sh +++ b/git-merge.sh @@ -273,7 +273,8 @@ fi case "$best_strategy" in '') restorestate - die "No merge strategy handled the merge." + echo >&2 "No merge strategy handled the merge." + exit 2 ;; "$wt_strategy") # We already have its result in the working tree. |