Merge branch 'nd/diff-apply-ita'
commitac997db0c13d3acde8fcb6c79ff095ba6bd27169
authorJunio C Hamano <gitster@pobox.com>
Mon, 25 Jun 2018 20:22:36 +0000 (25 13:22 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Jun 2018 20:22:36 +0000 (25 13:22 -0700)
tree3a1294218762ac16d06596c8ab3ac342103bfd99
parenta856e7d69f51776e40633d6f1f1f38a7fd64f0d5
parentcff5dc09ed0d07461bf77e9abef57dc86a11ab77
Merge branch 'nd/diff-apply-ita'

"git diff" compares the index and the working tree.  For paths
added with intent-to-add bit, the command shows the full contents
of them as added, but the paths themselves were not marked as new
files.  They are now shown as new by default.

"git apply" learned the "--intent-to-add" option so that an
otherwise working-tree-only application of a patch will add new
paths to the index marked with the "intent-to-add" bit.

* nd/diff-apply-ita:
  apply: add --intent-to-add
  t2203: add a test about "diff HEAD" case
  diff: turn --ita-invisible-in-index on by default
  diff: ignore --ita-[in]visible-in-index when diffing worktree-to-tree
Documentation/git-apply.txt
apply.c
builtin/diff.c
t/t2203-add-intent.sh