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>
This commit is contained in:

committed by
Junio C Hamano

parent
56b5e946f2
commit
4275df5170
@ -273,7 +273,8 @@ fi
|
|||||||
case "$best_strategy" in
|
case "$best_strategy" in
|
||||||
'')
|
'')
|
||||||
restorestate
|
restorestate
|
||||||
die "No merge strategy handled the merge."
|
echo >&2 "No merge strategy handled the merge."
|
||||||
|
exit 2
|
||||||
;;
|
;;
|
||||||
"$wt_strategy")
|
"$wt_strategy")
|
||||||
# We already have its result in the working tree.
|
# We already have its result in the working tree.
|
||||||
|
Reference in New Issue
Block a user