It allows for uniformity with the --untracked-files option. Also the new short flag saves the number of keys to press for the typically git-status command. Signed-off-by: Nicholas Guriev <guriev-ns@xxxxx> --- Documentation/git-status.txt | 1 + builtin/commit.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/git-status.txt b/Documentation/git-status.txt index d9f422d..cce352a 100644 --- a/Documentation/git-status.txt +++ b/Documentation/git-status.txt @@ -97,6 +97,7 @@ configuration variable documented in linkgit:git-config[1]. (and suppresses the output of submodule summaries when the config option `status.submoduleSummary` is set). +-i[<mode>]:: --ignored[=<mode>]:: Show ignored files as well. + diff --git a/builtin/commit.c b/builtin/commit.c index 158e3f8..44829b9 100644 --- a/builtin/commit.c +++ b/builtin/commit.c @@ -1319,7 +1319,7 @@ int cmd_status(int argc, const char **argv, const char *prefix) N_("mode"), N_("show untracked files, optional modes: all, normal, no. (Default: all)"), PARSE_OPT_OPTARG, NULL, (intptr_t)"all" }, - { OPTION_STRING, 0, "ignored", &ignored_arg, + { OPTION_STRING, 'i', "ignored", &ignored_arg, N_("mode"), N_("show ignored files, optional modes: traditional, matching, no. (Default: traditional)"), PARSE_OPT_OPTARG, NULL, (intptr_t)"traditional" }, -- 2.7.4