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
5};5};
6use byteorder::{BigEndian, ByteOrder};6use byteorder::{BigEndian, ByteOrder};
7use git_hash::SIZE_OF_SHA1_DIGEST as SHA1_SIZE;7use git_hash::SIZE_OF_SHA1_DIGEST as SHA1_SIZE;
8use git_object::owned;
9use std::{8use std::{
10 convert::{TryFrom, TryInto},9 convert::{TryFrom, TryInto},
11 fmt::{Debug, Formatter},10 fmt::{Debug, Formatter},
@@ -17,13 +16,13 @@ use std::{ · 5 unmodified lines
17#[allow(missing_docs)]16#[allow(missing_docs)]
18pub enum Error {17pub enum Error {
19 #[error("commit {0}'s extra edges overflows the commit-graph file's extra edges list")]18 #[error("commit {0}'s extra edges overflows the commit-graph file's extra edges list")]
20 ExtraEdgesListOverflow(owned::Id),19 ExtraEdgesListOverflow(git_hash::Id),
21 #[error("commit {0}'s first parent is an extra edge index, which is invalid")]20 #[error("commit {0}'s first parent is an extra edge index, which is invalid")]
22 FirstParentIsExtraEdgeIndex(owned::Id),21 FirstParentIsExtraEdgeIndex(git_hash::Id),
23 #[error("commit {0} has extra edges, but commit-graph file has no extra edges list")]22 #[error("commit {0} has extra edges, but commit-graph file has no extra edges list")]
24 MissingExtraEdgesList(owned::Id),23 MissingExtraEdgesList(git_hash::Id),
25 #[error("commit {0} has a second parent but not a first parent")]24 #[error("commit {0} has a second parent but not a first parent")]
26 SecondParentWithoutFirstParent(owned::Id),25 SecondParentWithoutFirstParent(git_hash::Id),
27}26}
28 27
29// Note that git's commit-graph-format.txt as of v2.28.0 gives an incorrect value 0x0700_0000 for28// Note that git's commit-graph-format.txt as of v2.28.0 gives an incorrect value 0x0700_0000 for