summaryrefslogtreecommitdiff
path: root/worktree.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2016-11-28 16:36:56 +0700
committerJunio C Hamano <gitster@pobox.com>2016-11-28 13:18:51 -0800
commit4df1d4d4666eb26b420d5b386010470729846b8c (patch)
tree3326149c4a7e8c3927d56e1f2a0e04ba0f19c1ee /worktree.h
parent4fff1ef7ffe0e370459242cf08c51177eeb4181f (diff)
downloadgit-4df1d4d4666eb26b420d5b386010470729846b8c.tar.gz
worktree list: keep the list sortednd/worktree-list-fixup
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 'worktree.h')
-rw-r--r--worktree.h2
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