Skip to content

Commit 736cd8d

Browse files
committed
remove comments
1 parent 3f331d9 commit 736cd8d

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/commands/checkout.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ void checkout(std::vector<std::string> &args) {
5151
GitTree *treeObj =
5252
dynamic_cast<GitTree *>(GitObject::read(*repo, head->get_tree()));
5353
GitTree::instantiate_tree(tree, treeObj, repo->worktree_path(""));
54-
// TODO: fix bug in this one
5554
if (repo->has_object(hash)) {
5655
repo->update_head(hash);
5756
} else if (fs::exists(repo->repo_path("refs/tags/" + hash))) {

src/repository.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ std::optional<GitRepository> GitRepository::find(const fs::path &path,
108108
return find(parent, required);
109109
}
110110

111-
// TODO: update this to support refs
112111
void GitRepository::update_head(const std::string &new_head) {
113112
create_file(gitdir / "HEAD", new_head + "\n");
114113
}

0 commit comments

Comments
 (0)