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 <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
dscho committed Oct 9, 2024
1 parent c5d00b2 commit eeca006
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 @@ -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,

Expand Down

0 comments on commit eeca006

Please sign in to comment.