Commit 281294a56095bcb77b80db4140bb2f2d439b2812

Stefan Sperling 2018-03-10T17:14:25

add stub for anticipated worktree function which updates fileindex

diff --git a/include/got_worktree.h b/include/got_worktree.h
index efcffc8..0925d84 100644
--- a/include/got_worktree.h
+++ b/include/got_worktree.h
@@ -24,5 +24,7 @@ char *got_worktree_get_repo_path(struct got_worktree *);
 struct got_reference *got_worktree_get_head(struct got_worktree *);
 const struct got_error *got_worktree_set_head(struct got_worktree *,
     struct got_reference *, struct got_repository *);
+const struct got_error *got_worktree_update_fileindex(struct got_worktree *,
+    struct got_repository *);
 const struct got_error *got_worktree_checkout_files(struct got_worktree *,
     struct got_repository *);
diff --git a/lib/worktree.c b/lib/worktree.c
index 62920bb..3267dbc 100644
--- a/lib/worktree.c
+++ b/lib/worktree.c
@@ -194,6 +194,12 @@ got_worktree_set_head(struct got_worktree *worktree, struct got_reference *head,
 }
 
 const struct got_error *
+got_worktree_update_fileindex(struct got_worktree *worktree,
+    struct got_repository *repo)
+{
+	return NULL;
+}
+const struct got_error *
 got_worktree_checkout_files(struct got_worktree *worktree,
     struct got_repository *repo)
 {