Add todos

This commit is contained in:
Joscha 2023-08-06 01:54:22 +02:00
parent 19a7bda8ab
commit 0f3cf296f1
2 changed files with 2 additions and 0 deletions

View file

@ -1,6 +1,7 @@
//! Add new commits to the database and update the tracked refs.
// TODO Think about whether ref hashes should be tracked in the db
// TODO Prevent some sync stuff from blocking the async stuff
use std::collections::HashSet;

View file

@ -62,6 +62,7 @@ WHERE parent = ?
.fetch_all(&db)
.await?;
// TODO Store commit info in db and avoid Repository
// TODO Include untracked info for current commit
let repo = repo.to_thread_local();
let id = hash.parse::<ObjectId>()?.attach(&repo);