Commit 9d40349afb0c438d161315fb5751aa39e5a1a2ae

Stefan Sperling 2019-05-08T18:49:54

add TODO comments

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/lib/worktree.c b/lib/worktree.c
index 1bd890d..a972caf 100644
--- a/lib/worktree.c
+++ b/lib/worktree.c
@@ -2680,6 +2680,11 @@ got_worktree_commit(struct got_object_id **new_commit_id,
 	err = got_object_commit_create(new_commit_id, new_tree_id, &parent_ids,
 	    1, author, time(NULL), committer, time(NULL), logmsg, repo);
 	got_object_qid_free(pid);
+	if (err)
+		goto done;
+
+	/* TODO: bump base-commit; rewrite fileindex */
+
 done:
 	unlockerr = lock_worktree(worktree, LOCK_SH);
 	if (unlockerr && err == NULL)