Skip to content

Commit

Permalink
git-merge: Exit with code 2 if no strategy was able to handle the merge.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fredrik Kuivinen authored and Junio C Hamano committed Dec 3, 2005
1 parent 56b5e94 commit 4275df5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion git-merge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4275df5

Please sign in to comment.