trace.c: export trace_setup_key
[gitweb.git] / worktree.h
index a913428c3d62d5cfb94f47e9ae642f86af204087..fe38ce10c300ba456f406950bf960d19d5d79cce 100644 (file)
@@ -61,12 +61,15 @@ extern int is_main_worktree(const struct worktree *wt);
  */
 extern const char *is_worktree_locked(struct worktree *wt);
 
+#define WT_VALIDATE_WORKTREE_MISSING_OK (1 << 0)
+
 /*
  * Return zero if the worktree is in good condition. Error message is
  * returned if "errmsg" is not NULL.
  */
 extern int validate_worktree(const struct worktree *wt,
-                            struct strbuf *errmsg);
+                            struct strbuf *errmsg,
+                            unsigned flags);
 
 /*
  * Update worktrees/xxx/gitdir with the new path.