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 (6 of 31 files). Show all

Unified · Split

6 files
  1. git-commitgraph/Cargo.toml +3 −2
  2. git-commitgraph/src/file/access.rs +2 −1
  3. git-commitgraph/src/file/commit.rs +2 −1
  4. git-commitgraph/src/file/init.rs +1 −1
  5. git-commitgraph/src/file/mod.rs +1 −1
  6. git-commitgraph/src/file/verify.rs +2 −1
git-commitgraph/Cargo.toml+3−2
@@ -1,6 +1,6 @@
11 [package]
22 name = "git-commitgraph"
3−version = "0.2.0"
3+version = "0.3.0"
44 repository = "https://github.com/Byron/gitoxide"
55 documentation = "https://git-scm.com/docs/commit-graph#:~:text=The%20commit-graph%20file%20is%20a%20supplemental%20data%20structure,or%20in%20the%20info%20directory%20of%20an%20alternate."
66 license = "MIT/Apache-2.0"
@@ -17,7 +17,8 @@ serde1 = ["serde", "git-object/serde1"] · 10 unmodified lines
1717
1818 [dependencies]
1919 git-features = { version = "^0.10.0", path = "../git-features" }
20−git-object = { version = "^0.5.0", path = "../git-object" }
20+git-object = { version = "^0.6.0", path = "../git-object" }
21+git-hash = { version = "^0.1.0", path = "../git-hash" }
2122
2223 bstr = { version = "0.2.13", default-features = false, features = ["std"] }
2324 byteorder = "1.2.3"
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,