diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2020-06-20 01:35:44 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-06-22 19:31:15 +0200 |
commit | 03f2465bb1c1d9222181c493373e668c0ba7eb51 (patch) | |
tree | 48a952a386fd3eadc0bc2486f5e7dfe91eedf493 /branch.c | |
parent | worktree: drop get_worktrees() special-purpose sorting option (diff) | |
download | git-03f2465bb1c1d9222181c493373e668c0ba7eb51.tar.xz git-03f2465bb1c1d9222181c493373e668c0ba7eb51.zip |
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 'branch.c')
-rw-r--r-- | branch.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -369,7 +369,7 @@ int replace_each_worktree_head_symref(const char *oldref, const char *newref, const char *logmsg) { int ret = 0; - struct worktree **worktrees = get_worktrees(0); + struct worktree **worktrees = get_worktrees(); int i; for (i = 0; worktrees[i]; i++) { |