]> git.ipfire.org Git - thirdparty/git.git/blobdiff - worktree.h
Merge branch 'es/get-worktrees-unsort'
[thirdparty/git.git] / worktree.h
index d242a6e71c0333f80b76e44976f0c4356f99bec3..516744c433f1e627abe85a347d72e6516f98c171 100644 (file)
@@ -18,19 +18,14 @@ struct worktree {
        int lock_reason_valid; /* private */
 };
 
-/* 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
- * worktree.  No specific ordering is done on the linked worktrees.
+ * and linked worktrees will follow in no particular order.
  *
  * The caller is responsible for freeing the memory from the returned
- * worktree(s).
+ * worktrees by calling free_worktrees().
  */
-struct worktree **get_worktrees(unsigned flags);
+struct worktree **get_worktrees(void);
 
 /*
  * Returns 1 if linked worktrees exist, 0 otherwise.