mergetool: don't suggest to continue after last file
commitd651a54b8a22a307f5b061ba50c5348ae31e861c
authorNicholas Guriev <guriev-ns@ya.ru>
Mon, 13 Aug 2018 05:09:29 +0000 (13 08:09 +0300)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Aug 2018 19:11:19 +0000 (13 12:11 -0700)
tree3680a28a6d5296e4d4ef5c110278b818635876fa
parent53f9a3e157dbbc901a02ac2c73346d375e24978c
mergetool: don't suggest to continue after last file

Eliminate an unnecessary prompt to continue after failed merger, by
not calling the prompt_after_failed_merge function when only one
iteration remains.

Uses positional parameters to count files in the list to make it
easier to see if we have any more paths to process from within the
loop.

Signed-off-by: Nicholas Guriev <guriev-ns@ya.ru>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-mergetool.sh