Skip to content
Snippets Groups Projects
Commit 03e904cb authored by Junio C Hamano's avatar Junio C Hamano
Browse files

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
parents 3bc484af d651a54b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment