mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-10 14:26:58 +00:00
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:
parent
dc32bb1f95
commit
23d37f9060
1 changed files with 0 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue