History

adapt to changes in git-hash (#279)

Sebastian Thiel committed 4 years ago

Commit 5eb02301 parent 79dc0d54 files · +6 −7Browse files

Showing the changes to git-commitgraph/src/file/commit.rs (1 of 4 files). Show all

Unified · Split

git-commitgraph/src/file/commit.rs+1−1
@@ -43,7 +43,7 @@ impl<'a> Commit<'a> { · 42 unmodified lines
4343 Commit {
4444 file,
4545 pos,
46− root_tree_id: git_hash::oid::try_from(&bytes[..file.hash_len]).expect("hash bytes to be alright"),
46+ root_tree_id: git_hash::oid::from_bytes_unchecked(&bytes[..file.hash_len]),
4747 parent1: ParentEdge::from_raw(BigEndian::read_u32(&bytes[file.hash_len..][..4])),
4848 parent2: ParentEdge::from_raw(BigEndian::read_u32(&bytes[file.hash_len + 4..][..4])),
4949 generation: BigEndian::read_u32(&bytes[file.hash_len + 8..][..4]) >> 2,