From eeca00643e4d2511b0485cf465b4067e67b865a8 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Mon, 7 Oct 2024 15:24:09 +0200 Subject: [PATCH] amend! survey: add --top= option and config survey: add --top= option and config The 'git survey' builtin provides several detail tables, such as "top files by on-disk size". The size of these tables defaults to 10, currently. Allow the user to specify this number via a new --top= option or the new survey.top config key. Signed-off-by: Derrick Stolee Signed-off-by: Johannes Schindelin --- builtin/survey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/survey.c b/builtin/survey.c index 34850399fd601a..1ae5dd5756b97d 100644 --- a/builtin/survey.c +++ b/builtin/survey.c @@ -869,7 +869,7 @@ int cmd_survey(int argc, const char **argv, const char *prefix, struct repositor .opts = { .verbose = 0, .show_progress = -1, /* defaults to isatty(2) */ - .top_nr = 100, + .top_nr = 10, .refs.want_all_refs = -1,