History

All crates use git-hash::Kind and its types, sometimes through git-object

Sebastian Thiel committed 5 years ago

Commit 124c1711 parent 5b307e031 files · +65 −319Browse files

Showing the changes to git-commitgraph/src (5 of 31 files). Show all

Unified · Split

5 files
  1. git-commitgraph/src/file/access.rs +2 −1
  2. git-commitgraph/src/file/commit.rs +2 −1
  3. git-commitgraph/src/file/init.rs +1 −1
  4. git-commitgraph/src/file/mod.rs +1 −1
  5. git-commitgraph/src/file/verify.rs +2 −1
git-commitgraph/src/file/access.rs+2−1
@@ -1,5 +1,6 @@
11 use crate::file::{self, commit::Commit, File, COMMIT_DATA_ENTRY_SIZE};
2−use git_object::{borrowed, HashKind, SHA1_SIZE};
2+use git_hash::SIZE_OF_SHA1_DIGEST as SHA1_SIZE;
3+use git_object::{borrowed, HashKind};
34 use std::{
45 convert::{TryFrom, TryInto},
56 fmt::{Debug, Formatter},
git-commitgraph/src/file/commit.rs+2−1
@@ -3,7 +3,8 @@ use crate::{ · 2 unmodified lines
33 graph,
44 };
55 use byteorder::{BigEndian, ByteOrder};
6−use git_object::{borrowed, owned, SHA1_SIZE};
6+use git_hash::SIZE_OF_SHA1_DIGEST as SHA1_SIZE;
7+use git_object::{borrowed, owned};
78 use std::{
89 convert::{TryFrom, TryInto},
910 fmt::{Debug, Formatter},
git-commitgraph/src/file/init.rs+1−1
@@ -2,7 +2,7 @@ use crate::file::{File, COMMIT_DATA_ENTRY_SIZE, FAN_LEN, SIGNATURE}; · 1 unmodified line
22 use bstr::ByteSlice;
33 use byteorder::{BigEndian, ByteOrder};
44 use filebuffer::FileBuffer;
5−use git_object::SHA1_SIZE;
5+use git_hash::SIZE_OF_SHA1_DIGEST as SHA1_SIZE;
66 use std::{
77 convert::{TryFrom, TryInto},
88 ops::Range,
git-commitgraph/src/file/mod.rs+1−1
@@ -8,7 +8,7 @@ pub use init::Error; · 7 unmodified lines
88
99 pub use commit::Commit;
1010 use filebuffer::FileBuffer;
11−use git_object::SHA1_SIZE;
11+use git_hash::SIZE_OF_SHA1_DIGEST as SHA1_SIZE;
1212 use std::{
1313 fmt::{Display, Formatter},
1414 ops::Range,
git-commitgraph/src/file/verify.rs+2−1
@@ -3,7 +3,8 @@ use crate::{ · 2 unmodified lines
33 GENERATION_NUMBER_INFINITY, GENERATION_NUMBER_MAX,
44 };
55 use bstr::ByteSlice;
6−use git_object::{borrowed, owned, SHA1_SIZE};
6+use git_hash::SIZE_OF_SHA1_DIGEST as SHA1_SIZE;
7+use git_object::{borrowed, owned};
78 use std::{
89 cmp::{max, min},
910 collections::HashMap,