History

Remove all public exports of git-hash types in git-object (#63)

Sebastian Thiel committed 5 years ago

Commit accf89d1 parent a3f281660 files · +262 −252Browse files

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

Unified · Split

git-commitgraph/src/file/commit.rs+4−5
@@ -5,7 +5,6 @@ use crate::{ · 4 unmodified lines
55 };
66 use byteorder::{BigEndian, ByteOrder};
77 use git_hash::SIZE_OF_SHA1_DIGEST as SHA1_SIZE;
8−use git_object::owned;
98 use std::{
109 convert::{TryFrom, TryInto},
1110 fmt::{Debug, Formatter},
@@ -17,13 +16,13 @@ use std::{ · 5 unmodified lines
1716 #[allow(missing_docs)]
1817 pub enum Error {
1918 #[error("commit {0}'s extra edges overflows the commit-graph file's extra edges list")]
20− ExtraEdgesListOverflow(owned::Id),
19+ ExtraEdgesListOverflow(git_hash::Id),
2120 #[error("commit {0}'s first parent is an extra edge index, which is invalid")]
22− FirstParentIsExtraEdgeIndex(owned::Id),
21+ FirstParentIsExtraEdgeIndex(git_hash::Id),
2322 #[error("commit {0} has extra edges, but commit-graph file has no extra edges list")]
24− MissingExtraEdgesList(owned::Id),
23+ MissingExtraEdgesList(git_hash::Id),
2524 #[error("commit {0} has a second parent but not a first parent")]
26− SecondParentWithoutFirstParent(owned::Id),
25+ SecondParentWithoutFirstParent(git_hash::Id),
2726 }
2827
2928 // Note that git's commit-graph-format.txt as of v2.28.0 gives an incorrect value 0x0700_0000 for