summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-09-23 16:48:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-09-23 22:03:48 (GMT)
commitf188160be9e17cba00cc4e0e501c1ab74e88fc80 (patch)
tree405e1a7ed97778c5d3e6e654d300d1e9aef30bfc
parent225bc32a989d7a22fa6addafd4ce7dcd04675dbf (diff)
downloadgit-f188160be9e17cba00cc4e0e501c1ab74e88fc80.zip
git-f188160be9e17cba00cc4e0e501c1ab74e88fc80.tar.gz
git-f188160be9e17cba00cc4e0e501c1ab74e88fc80.tar.bz2
bundle: remove ignored & undocumented "--verbose" flag
In 73c3253d75e (bundle: framework for options before bundle file, 2019-11-10) the "git bundle" command was refactored to use parse_options(). In that refactoring it started understanding the "--verbose" flag before the subcommand, e.g.: git bundle --verbose verify --quiet However, nothing ever did anything with this "verbose" variable, and the change wasn't documented. It appears to have been something that escaped the lab, and wasn't flagged by reviewers at the time. Let's just remove it. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Reviewed-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--builtin/bundle.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/builtin/bundle.c b/builtin/bundle.c
index 053a51b..5f31354 100644
--- a/builtin/bundle.c
+++ b/builtin/bundle.c
@@ -39,8 +39,6 @@ static const char * const builtin_bundle_unbundle_usage[] = {
NULL
};
-static int verbose;
-
static int parse_options_cmd_bundle(int argc,
const char **argv,
const char* prefix,
@@ -188,7 +186,6 @@ cleanup:
int cmd_bundle(int argc, const char **argv, const char *prefix)
{
struct option options[] = {
- OPT__VERBOSE(&verbose, N_("be verbose; must be placed before a subcommand")),
OPT_END()
};
int result;