git_backend: delete obsolete (?) comment about not avoiding use of index

It seems to me that we have never created a Git index in order to
create a commit, not even in the earliest versions of the code (before
it was moved to Git).
This commit is contained in:
Martin von Zweigbergk 2022-04-29 12:29:05 -07:00 committed by Martin von Zweigbergk
parent dc32bb1f95
commit 23d37f9060

View file

@ -360,8 +360,6 @@ impl Backend for GitBackend {
}
fn write_commit(&self, contents: &Commit) -> BackendResult<CommitId> {
// TODO: We shouldn't have to create an in-memory index just to write an
// object...
let locked_repo = self.repo.lock().unwrap();
let git_tree = locked_repo.find_tree(Oid::from_bytes(contents.root_tree.as_bytes())?)?;
let author = signature_to_git(&contents.author);