X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=worktree.h;h=d59ce1fee875800462a1e464592fd9dd01828e17;hb=12733e9dd39411be4cd6a9a437faa7d86df159c2;hp=90e1311fa73fa6bdde5249d68818eacb6dc8edd0;hpb=020222ef4dc1c8478fd217ccc524677215674821;p=git-core%2Fgit.git diff --git a/worktree.h b/worktree.h index 90e1311fa..d59ce1fee 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 @@ -23,7 +25,7 @@ struct worktree { * The caller is responsible for freeing the memory from the returned * worktree(s). */ -extern struct worktree **get_worktrees(void); +extern struct worktree **get_worktrees(unsigned flags); /* * Return git dir of the worktree. Note that the path may be relative.