Commit Diff


commit - 606778cdb7e382edf26d45fe46679032f93bb282
commit + 4d94df2df6b17c0a915c81b3041621de6d89b589
blob - d95e1a2179b6622f2368bf05228412e29bc7f3eb
blob + e3dda9b4d776c6e9cacb6e6330cd0a3fb71bf1dd
--- include/got_worktree.h
+++ include/got_worktree.h
@@ -22,7 +22,7 @@ const struct got_error *got_worktree_open(struct got_w
 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 *);
blob - ca7a21cd361400c9b14e3da3838bcfeef795e861
blob + 986dd17f6a2088fea566fba419f08da4fdec0d61
--- lib/worktree.c
+++ 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;