]> git.ipfire.org Git - thirdparty/git.git/blobdiff - diff.c
diff: add --ita-[in]visible-in-index
[thirdparty/git.git] / diff.c
diff --git a/diff.c b/diff.c
index a178ed39bc77988dcc6282d252002f5446305628..297e0340e93cdf3e14be14f03d41506756d48511 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -3951,6 +3951,10 @@ int diff_opt_parse(struct diff_options *options,
                return parse_submodule_opt(options, arg);
        else if (skip_prefix(arg, "--ws-error-highlight=", &arg))
                return parse_ws_error_highlight(options, arg);
+       else if (!strcmp(arg, "--ita-invisible-in-index"))
+               options->ita_invisible_in_index = 1;
+       else if (!strcmp(arg, "--ita-visible-in-index"))
+               options->ita_invisible_in_index = 0;
 
        /* misc options */
        else if (!strcmp(arg, "-z"))