worktree.c: get_worktrees() takes a new flag argument
This is another no-op patch, in preparation for get_worktrees() to do optional things, like sorting. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
a234563a3b
commit
4fff1ef7ff
2
branch.c
2
branch.c
@ -348,7 +348,7 @@ void die_if_checked_out(const char *branch, int ignore_current_worktree)
|
||||
int replace_each_worktree_head_symref(const char *oldref, const char *newref)
|
||||
{
|
||||
int ret = 0;
|
||||
struct worktree **worktrees = get_worktrees();
|
||||
struct worktree **worktrees = get_worktrees(0);
|
||||
int i;
|
||||
|
||||
for (i = 0; worktrees[i]; i++) {
|
||||
|
||||
Reference in New Issue
Block a user