Skip to content

Commit

Permalink
amend! survey: add --top=<N> option and config
Browse files Browse the repository at this point in the history
survey: add --top=<N> 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=<N> option or the
new survey.top config key.

Signed-off-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Oct 8, 2024
1 parent 7715abe commit 00f402c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/survey.c
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,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,

Expand Down

0 comments on commit 00f402c

Please sign in to comment.