Merge branch 'ng/mergetool-lose-final-prompt'

"git mergetool" stopped and gave an extra prompt to continue after
the last path has been handled, which did not make much sense.

* ng/mergetool-lose-final-prompt:
  mergetool: don't suggest to continue after last file
This commit is contained in:
Junio C Hamano 2018-08-20 11:33:51 -07:00
commit 03e904cbd6

View File

@ -491,14 +491,16 @@ main () {
printf "%s\n" "$files" printf "%s\n" "$files"
rc=0 rc=0
for i in $files set -- $files
while test $# -ne 0
do do
printf "\n" printf "\n"
if ! merge_file "$i" if ! merge_file "$1"
then then
rc=1 rc=1
prompt_after_failed_merge || exit 1 test $# -ne 1 && prompt_after_failed_merge || exit 1
fi fi
shift
done done
exit $rc exit $rc