diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2020-06-19 19:35:44 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-06-22 10:31:15 -0700 |
commit | 03f2465bb1c1d9222181c493373e668c0ba7eb51 (patch) | |
tree | 48a952a386fd3eadc0bc2486f5e7dfe91eedf493 /revision.c | |
parent | worktree: drop get_worktrees() special-purpose sorting option (diff) | |
download | tgif-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 'revision.c')
-rw-r--r-- | revision.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/revision.c b/revision.c index 8136929e23..a42f6d5e42 100644 --- a/revision.c +++ b/revision.c @@ -1452,7 +1452,7 @@ static void add_other_reflogs_to_pending(struct all_refs_cb *cb) { struct worktree **worktrees, **p; - worktrees = get_worktrees(0); + worktrees = get_worktrees(); for (p = worktrees; *p; p++) { struct worktree *wt = *p; @@ -1540,7 +1540,7 @@ void add_index_objects_to_pending(struct rev_info *revs, unsigned int flags) if (revs->single_worktree) return; - worktrees = get_worktrees(0); + worktrees = get_worktrees(); for (p = worktrees; *p; p++) { struct worktree *wt = *p; struct index_state istate = { NULL }; |