summaryrefslogtreecommitdiff
path: root/builtin/fsck.c
diff options
context:
space:
mode:
authorLibravatar Eric Sunshine <sunshine@sunshineco.com>2020-06-19 19:35:44 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-06-22 10:31:15 -0700
commit03f2465bb1c1d9222181c493373e668c0ba7eb51 (patch)
tree48a952a386fd3eadc0bc2486f5e7dfe91eedf493 /builtin/fsck.c
parentworktree: drop get_worktrees() special-purpose sorting option (diff)
downloadtgif-03f2465bb1c1d9222181c493373e668c0ba7eb51.tar.xz
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/fsck.c')
-rw-r--r--builtin/fsck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/fsck.c b/builtin/fsck.c
index 8d13794b14..5ebf81374a 100644
--- a/builtin/fsck.c
+++ b/builtin/fsck.c
@@ -576,7 +576,7 @@ static void get_default_heads(void)
for_each_rawref(fsck_handle_ref, NULL);
- worktrees = get_worktrees(0);
+ worktrees = get_worktrees();
for (p = worktrees; *p; p++) {
struct worktree *wt = *p;
struct strbuf ref = STRBUF_INIT;