Merge branch 'jk/add-i-use-pathspecs' into next
authorJunio C Hamano <gitster@pobox.com>
Tue, 14 Mar 2017 22:37:31 +0000 (15:37 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 14 Mar 2017 22:37:31 +0000 (15:37 -0700)
commit13ce4d91e1ce18505d7633fb6ad9518798bf065a
tree4fe34de511d69ed7c291cc8176c2f4da46a54bd1
parent02020b475d32b4738a9b90836e5faf3b669d0904
parent7288e12cce5db87216eba16441a2c37206e5dcad
Merge branch 'jk/add-i-use-pathspecs' into next

"git add -p <pathspec>" unnecessarily expanded the pathspec to a
list of individual files that matches the pathspec by running "git
ls-files <pathspec>", before feeding it to "git diff-index" to see
which paths have changes, because historically the pathspec
language supported by "diff-index" was weaker.  These days they are
equivalent and there is no reason to internally expand it.  This
helps both performance and avoids command line argument limit on
some platforms.

* jk/add-i-use-pathspecs:
  add--interactive: do not expand pathspecs with ls-files
git-add--interactive.perl
t/t3701-add-interactive.sh