Commit 4d94df2df6b17c0a915c81b3041621de6d89b589

Stefan Sperling 2018-03-11T01:19:40

rename worktree set_head() operation to change_head()

diff --git a/include/got_worktree.h b/include/got_worktree.h
index d95e1a2..e3dda9b 100644
--- a/include/got_worktree.h
+++ b/include/got_worktree.h
@@ -22,7 +22,7 @@ const struct got_error *got_worktree_open(struct got_worktree **, const char *);
 void got_worktree_close(struct got_worktree *);
 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 *,
+const struct got_error *got_worktree_change_head(struct got_worktree *,
     struct got_reference *, 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 ca7a21c..986dd17 100644
--- a/lib/worktree.c
+++ b/lib/worktree.c
@@ -195,7 +195,7 @@ got_worktree_get_head(struct got_worktree *worktree)
 }
 
 const struct got_error *
-got_worktree_set_head(struct got_worktree *worktree, struct got_reference *head,
+got_worktree_change_head(struct got_worktree *worktree, struct got_reference *head,
     struct got_repository *repo)
 {
 	return NULL;