summaryrefslogtreecommitdiff
path: root/builtin/reset.c
diff options
context:
space:
mode:
authorBen Peart <benpeart@microsoft.com>2018-10-23 19:04:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-10-24 02:57:07 (GMT)
commit4c3abd0551d8ff1c280de2bc53d6a7657b053d33 (patch)
tree77e51277ff7cd25d35253bf42bf44c90db7356d1 /builtin/reset.c
parent9ac8125d1ab83f1a0c48f6f30bb8fea92d9770d7 (diff)
downloadgit-4c3abd0551d8ff1c280de2bc53d6a7657b053d33.zip
git-4c3abd0551d8ff1c280de2bc53d6a7657b053d33.tar.gz
git-4c3abd0551d8ff1c280de2bc53d6a7657b053d33.tar.bz2
reset: add new reset.quiet config setting
Add a reset.quiet config setting that sets the default value of the --quiet flag when running the reset command. This enables users to change the default behavior to take advantage of the performance advantages of avoiding the scan for unstaged changes after reset. Defaults to false. Signed-off-by: Ben Peart <benpeart@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/reset.c')
-rw-r--r--builtin/reset.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/reset.c b/builtin/reset.c
index c2f8e72..ff5f175 100644
--- a/builtin/reset.c
+++ b/builtin/reset.c
@@ -307,6 +307,7 @@ int cmd_reset(int argc, const char **argv, const char *prefix)
};
git_config(git_reset_config, NULL);
+ git_config_get_bool("reset.quiet", &quiet);
argc = parse_options(argc, argv, prefix, options, git_reset_usage,
PARSE_OPT_KEEP_DASHDASH);