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:
commit
03e904cbd6
@ -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…
Reference in New Issue
Block a user