path: root/Documentation/diff-options.txt
diff options
authorNguyễn Thái Ngọc Duy <>2016-10-24 10:42:20 (GMT)
committerJunio C Hamano <>2016-10-24 17:47:51 (GMT)
commitb42b45191950a4ac39f6f5ae042c15ad114da79b (patch)
treed79debd6827d00ec3f5d4b9595bc2680c0d490b8 /Documentation/diff-options.txt
parent425a28e0a4edfc39585cec6b0b6368c0ad9dbf7e (diff)
diff: add --ita-[in]visible-in-index
The option --ita-invisible-in-index exposes the "ita_invisible_in_index" diff flag to outside to allow easier experimentation with this new mode. The "plan" is to make --ita-invisible-in-index default to keep consistent behavior with 'status' and 'commit', but a bunch other commands like 'apply', 'merge', 'reset'.... need to be taken into consideration as well. Signed-off-by: Nguyễn Thái Ngọc Duy <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/diff-options.txt')
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt
index 2d77a19..b249f6a 100644
--- a/Documentation/diff-options.txt
+++ b/Documentation/diff-options.txt
@@ -570,5 +570,13 @@ endif::git-format-patch[]
Prepend an additional prefix to every line of output.
+ By default entries added by "git add -N" appear as an existing
+ empty file in "git diff" and a new file in "git diff --cached".
+ This option makes the entry appear as a new file in "git diff"
+ and non-existent in "git diff --cached". This option could be
+ reverted with `--ita-visible-in-index`. Both options are
+ experimental and could be removed in future.
For more detailed explanation on these common options, see also