History

backend: create `ObjectId` trait

This lets us operate over various kinds of objects polymorphically (e.g. call `.hex()` on any kind of object hash).

Waleed Khan committed 3 years ago

Commit 7f8a1961 parent 9974d6721 files · +49 −31Browse files

Showing the changes to lib/src/commit_builder.rs (1 of 21 files). Show all

Unified · Split

lib/src/commit_builder.rs+1−2
@@ -14,8 +14,7 @@ · 13 unmodified lines
1414
1515 use uuid::Uuid;
1616
17−use crate::backend;
18−use crate::backend::{BackendResult, ChangeId, CommitId, Signature, TreeId};
17+use crate::backend::{self, BackendResult, ChangeId, CommitId, ObjectId, Signature, TreeId};
1918 use crate::commit::Commit;
2019 use crate::repo::MutableRepo;
2120 use crate::settings::UserSettings;