Browse Source

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
maint
Junio C Hamano 6 years ago
parent
commit
03e904cbd6
  1. 8
      git-mergetool.sh

8
git-mergetool.sh

@ -491,14 +491,16 @@ main () { @@ -491,14 +491,16 @@ main () {
printf "%s\n" "$files"

rc=0
for i in $files
set -- $files
while test $# -ne 0
do
printf "\n"
if ! merge_file "$i"
if ! merge_file "$1"
then
rc=1
prompt_after_failed_merge || exit 1
test $# -ne 1 && prompt_after_failed_merge || exit 1
fi
shift
done

exit $rc

Loading…
Cancel
Save