add--interactive: respect diff.compactionHeuristic
authorJeff King <peff@peff.net>
Thu, 16 Jun 2016 12:27:29 +0000 (08:27 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 16 Jun 2016 18:38:58 +0000 (11:38 -0700)
commit46e3d17f57f90538242b7a1dde126eba59f7c5ab
tree4ed00dbb1b0ae95feb43b0c9c1767545ba5364bc
parente5f767554404592cf65e7c49b3594b195a324031
add--interactive: respect diff.compactionHeuristic

We use plumbing to generate the diff, so it doesn't
automatically pick up UI config like compactionHeuristic.
Let's forward it on, since interactive adding is porcelain.

Note that we only need to handle the "true" case. There's no
point in passing --no-compaction-heuristic when the variable
is false, since nothing else could have turned it on.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-add--interactive.perl