Skip to content

Commit 87b5a52

Browse files
committed
fixup! status: reinstate --show-ignored-directory as a deprecated option
We said we would remove --show-ignored-directory in v2.16.0 or v2.17.0, but it is almost time for v2.21.0 already and we still have not removed it. Let's do it now. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent ee23586 commit 87b5a52

File tree

2 files changed

+0
-160
lines changed

2 files changed

+0
-160
lines changed

builtin/commit.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,7 +1302,6 @@ int cmd_status(int argc, const char **argv, const char *prefix)
13021302
static int no_renames = -1;
13031303
static const char *rename_score_arg = (const char *)-1;
13041304
static int no_lock_index = 0;
1305-
static int show_ignored_directory = 0;
13061305
static struct wt_status s;
13071306
unsigned int progress_flag = 0;
13081307
int fd;
@@ -1341,10 +1340,6 @@ int cmd_status(int argc, const char **argv, const char *prefix)
13411340
{ OPTION_CALLBACK, 'M', "find-renames", &rename_score_arg,
13421341
N_("n"), N_("detect renames, optionally set similarity index"),
13431342
PARSE_OPT_OPTARG | PARSE_OPT_NONEG, opt_parse_rename_score },
1344-
OPT_BOOL(0, "show-ignored-directory", &show_ignored_directory,
1345-
N_("(DEPRECATED: use --ignore=matching instead) Only "
1346-
"show directories that match an ignore pattern "
1347-
"name.")),
13481343
OPT_BOOL(0, "no-lock-index", &no_lock_index,
13491344
N_("(DEPRECATED: use `git --no-optional-locks status` "
13501345
"instead) Do not lock the index")),
@@ -1367,12 +1362,6 @@ int cmd_status(int argc, const char **argv, const char *prefix)
13671362
setenv(GIT_OPTIONAL_LOCKS_ENVIRONMENT, "false", 1);
13681363
}
13691364

1370-
if (show_ignored_directory) {
1371-
warning("--show-ignored-directory was deprecated, use "
1372-
"--ignored=matching instead");
1373-
ignored_arg = "matching";
1374-
}
1375-
13761365
handle_untracked_files_arg(&s);
13771366
handle_ignored_arg(&s);
13781367

t/t7522-status-show-ignored-directory.sh

Lines changed: 0 additions & 149 deletions
This file was deleted.

0 commit comments

Comments
 (0)