diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2020-06-20 02:35:44 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-06-22 20:31:15 +0300 |
commit | 03f2465bb1c1d9222181c493373e668c0ba7eb51 (patch) | |
tree | 48a952a386fd3eadc0bc2486f5e7dfe91eedf493 /builtin/config.c | |
parent | d9c54c2bbf684ca3903bc2227c81f657a557d8b8 (diff) |
worktree: drop get_worktrees() unused 'flags' argument
get_worktrees() accepts a 'flags' argument, however, there are no
existing flags (the lone flag GWT_SORT_LINKED was recently retired) and
no behavior which can be tweaked. Therefore, drop the 'flags' argument.
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/config.c')
-rw-r--r-- | builtin/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/config.c b/builtin/config.c index ee4aef6a35..5e39f61885 100644 --- a/builtin/config.c +++ b/builtin/config.c @@ -672,7 +672,7 @@ int cmd_config(int argc, const char **argv, const char *prefix) given_config_source.file = git_pathdup("config"); given_config_source.scope = CONFIG_SCOPE_LOCAL; } else if (use_worktree_config) { - struct worktree **worktrees = get_worktrees(0); + struct worktree **worktrees = get_worktrees(); if (repository_format_worktree_config) given_config_source.file = git_pathdup("config.worktree"); else if (worktrees[0] && worktrees[1]) |