checkout: count and print -m paths separately
commit1d1f689bef77b1bd0cb0f0bc0e0bd766283c5df8
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Wed, 6 Feb 2019 02:51:15 +0000 (6 09:51 +0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Feb 2019 20:46:08 +0000 (6 12:46 -0800)
treeae9d0724810c76ea98ca064813e8339dcd0d2626
parent3c5883b3c96e0435cca2e952754d76c4e45f72e4
checkout: count and print -m paths separately

Since 0f086e6dca (checkout: print something when checking out paths -
2018-11-13), this command reports how many paths have been updated
from what source (either from a tree, or from the index). I forget
that there's a third source: when -m is used, the merge conflict is
re-created (granted, also from the index, but it's not a straight copy
from the index).

Count and report unmerged paths separately. There's a bit more update
to avoid reporting:

   Recreated X merge conflicts
   Updated 0 paths from the index

The second line is unnecessary. Though if there's no conflict
recreation, we still report

   Updated 0 paths from the index

to make it clear we're not really doing anything.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout.c