diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2020-06-19 23:35:43 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-06-22 17:30:29 (GMT) |
commit | d9c54c2bbf684ca3903bc2227c81f657a557d8b8 (patch) | |
tree | f92b97425460ce1f035f4c4839e16e46dd441931 /builtin/fsck.c | |
parent | 810382ed378731314c03627a8a2d8962b814ad17 (diff) | |
download | git-d9c54c2bbf684ca3903bc2227c81f657a557d8b8.zip git-d9c54c2bbf684ca3903bc2227c81f657a557d8b8.tar.gz git-d9c54c2bbf684ca3903bc2227c81f657a557d8b8.tar.bz2 |
worktree: drop get_worktrees() special-purpose sorting option
Of all the clients of get_worktrees(), only "git worktree list" wants
the list sorted in a very specific way; other clients simply don't care
about the order. Rather than imbuing get_worktrees() with special
knowledge about how various clients -- now and in the future -- may want
the list sorted, drop the sorting capability altogether and make it the
client's responsibility to sort the list if needed.
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/fsck.c')
0 files changed, 0 insertions, 0 deletions