diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2016-11-28 10:36:56 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-11-28 22:18:51 +0100 |
commit | 4df1d4d4666eb26b420d5b386010470729846b8c (patch) | |
tree | 3326149c4a7e8c3927d56e1f2a0e04ba0f19c1ee /worktree.h | |
parent | worktree.c: get_worktrees() takes a new flag argument (diff) | |
download | git-4df1d4d4666eb26b420d5b386010470729846b8c.tar.xz git-4df1d4d4666eb26b420d5b386010470729846b8c.zip |
worktree list: keep the list sorted
It makes it easier to write tests for. But it should also be good for
the user since locating a worktree by eye would be easier once they
notice this.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rw-r--r-- | worktree.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/worktree.h b/worktree.h index 2e68d4ad86..d59ce1fee8 100644 --- a/worktree.h +++ b/worktree.h @@ -15,6 +15,8 @@ struct worktree { /* Functions for acting on the information about worktrees. */ +#define GWT_SORT_LINKED (1 << 0) /* keeps linked worktrees sorted */ + /* * Get the worktrees. The primary worktree will always be the first returned, * and linked worktrees will be pointed to by 'next' in each subsequent |