Commit 2944241d9c75a5af82bf989d3931ca67a5c7f70d

Stefan Sperling 2018-12-30T19:44:06

add a TODO comment

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/got/got.c b/got/got.c
index 74a744a..746cf51 100644
--- a/got/got.c
+++ b/got/got.c
@@ -341,6 +341,7 @@ check_ancestry(struct got_worktree *worktree, struct got_object_id *commit_id,
 	if (head_ref == NULL)
 		return got_error_from_errno();
 
+	/* TODO: Check the reflog. The head ref may have been rebased. */
 	err = got_ref_resolve(&head_commit_id, repo, head_ref);
 	if (err)
 		goto done;