diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-07-07 08:09:15 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-07-07 08:09:15 +0300 |
commit | 645f63111b9fc456cc48da9b320b86800fe5477c (patch) | |
tree | 21e97612acaf1250b8327b87d94d9ffebeb544d8 /revision.c | |
parent | e7e113a1df98f3a97a83c36cf75bcce50a4a0073 (diff) | |
parent | 03f2465bb1c1d9222181c493373e668c0ba7eb51 (diff) |
Merge branch 'es/get-worktrees-unsort'
API cleanup for get_worktrees()
* es/get-worktrees-unsort:
worktree: drop get_worktrees() unused 'flags' argument
worktree: drop get_worktrees() special-purpose sorting option
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 32be93f404..223e99db5d 100644 --- a/revision.c +++ b/revision.c @@ -1609,7 +1609,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; @@ -1697,7 +1697,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 }; |