]> git.ipfire.org Git - thirdparty/git.git/commitdiff
reset: remove 'reset.quiet' config option
authorVictoria Dye <vdye@github.com>
Wed, 23 Mar 2022 18:17:59 +0000 (18:17 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Mar 2022 21:39:45 +0000 (14:39 -0700)
Remove the 'reset.quiet' config option, remove '--no-quiet' documentation in
'Documentation/git-reset.txt'. In 4c3abd0551 (reset: add new reset.quiet
config setting, 2018-10-23), 'reset.quiet' was introduced as a way to
globally change the default behavior of 'git reset --mixed' to skip index
refresh.

However, now that '--quiet' does not affect index refresh, 'reset.quiet'
would only serve to globally silence logging. This was not the original
intention of the config setting, and there's no precedent for such a setting
in other commands with a '--quiet' option, so it appears to be obsolete.

In addition to the options & its documentation, remove 'reset.quiet' from
the recommended config for 'scalar'.

Signed-off-by: Victoria Dye <vdye@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
Documentation/config/reset.txt [deleted file]
Documentation/git-reset.txt
builtin/reset.c
contrib/scalar/scalar.c
t/t7102-reset.sh

index f0fb25a371c1a8e193ad5074862d8748d5a45622..43f5e6fd6d3fae020f585a74d02ece43e51e17c9 100644 (file)
@@ -495,8 +495,6 @@ include::config/repack.txt[]
 
 include::config/rerere.txt[]
 
-include::config/reset.txt[]
-
 include::config/sendemail.txt[]
 
 include::config/sequencer.txt[]
diff --git a/Documentation/config/reset.txt b/Documentation/config/reset.txt
deleted file mode 100644 (file)
index 63b7c45..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-reset.quiet::
-       When set to true, 'git reset' will default to the '--quiet' option.
index bc1646c3016a55d10c3d30d1bc330b63ebbd89ba..f4aca9dd35c8912bcb209de4b49365687708b6c6 100644 (file)
@@ -105,10 +105,7 @@ OPTIONS
 
 -q::
 --quiet::
---no-quiet::
-       Be quiet, only report errors. The default behavior is set by the
-       `reset.quiet` config option. `--quiet` and `--no-quiet` will
-       override the default behavior.
+       Be quiet, only report errors.
 
 --refresh::
 --no-refresh::
index 1804d0eeb8497e5ad7f1f33b1e643758fa39f138..9ce55afd1bec4303e715dbc25d06e396b1e570d9 100644 (file)
@@ -423,7 +423,6 @@ int cmd_reset(int argc, const char **argv, const char *prefix)
        };
 
        git_config(git_reset_config, NULL);
-       git_config_get_bool("reset.quiet", &quiet);
        git_config_get_bool("reset.refresh", &refresh);
 
        argc = parse_options(argc, argv, prefix, options, git_reset_usage,
index 7db2a97416e03c2a869cd8216d43684ebdb9264d..58ca0e56f14ab9059399203990648730a59a84a3 100644 (file)
@@ -152,7 +152,6 @@ static int set_recommended_config(int reconfigure)
                { "pack.useBitmaps", "false", 1 },
                { "pack.useSparse", "true", 1 },
                { "receive.autoGC", "false", 1 },
-               { "reset.quiet", "true", 1 },
                { "feature.manyFiles", "false", 1 },
                { "feature.experimental", "false", 1 },
                { "fetch.unpackLimit", "1", 1 },
index 8b62bb39b3d3f40fba29f9c67e35e490b42cad69..9e4c4deee3596d0e3f4a2a43b1f627ef4f85a8d7 100755 (executable)
@@ -488,8 +488,7 @@ test_expect_success '--mixed refreshes the index' '
        # Verify default behavior (without --[no-]refresh or reset.refresh)
        test_reset_refreshes_index &&
 
-       # With --quiet & reset.quiet
-       test_reset_refreshes_index "-c reset.quiet=true" &&
+       # With --quiet
        test_reset_refreshes_index "" --quiet
 '