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 @@
1[package]1[package]
2name = "git-commitgraph"2name = "git-commitgraph"
3version = "0.2.0"3version = "0.3.0"
4repository = "https://github.com/Byron/gitoxide"4repository = "https://github.com/Byron/gitoxide"
5documentation = "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."5documentation = "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."
6license = "MIT/Apache-2.0"6license = "MIT/Apache-2.0"
@@ -17,7 +17,8 @@ serde1 = ["serde", "git-object/serde1"] · 10 unmodified lines
17 17
18[dependencies]18[dependencies]
19git-features = { version = "^0.10.0", path = "../git-features" }19git-features = { version = "^0.10.0", path = "../git-features" }
20git-object = { version = "^0.5.0", path = "../git-object" }20git-object = { version = "^0.6.0", path = "../git-object" }
21git-hash = { version = "^0.1.0", path = "../git-hash" }
21 22
22bstr = { version = "0.2.13", default-features = false, features = ["std"] }23bstr = { version = "0.2.13", default-features = false, features = ["std"] }
23byteorder = "1.2.3"24byteorder = "1.2.3"
git-commitgraph/src/file/access.rs+2−1
@@ -1,5 +1,6 @@
1use crate::file::{self, commit::Commit, File, COMMIT_DATA_ENTRY_SIZE};1use crate::file::{self, commit::Commit, File, COMMIT_DATA_ENTRY_SIZE};
2use git_object::{borrowed, HashKind, SHA1_SIZE};2use git_hash::SIZE_OF_SHA1_DIGEST as SHA1_SIZE;
3use git_object::{borrowed, HashKind};
3use std::{4use std::{
4 convert::{TryFrom, TryInto},5 convert::{TryFrom, TryInto},
5 fmt::{Debug, Formatter},6 fmt::{Debug, Formatter},
git-commitgraph/src/file/commit.rs+2−1
@@ -3,7 +3,8 @@ use crate::{ · 2 unmodified lines
3 graph,3 graph,
4};4};
5use byteorder::{BigEndian, ByteOrder};5use byteorder::{BigEndian, ByteOrder};
6use git_object::{borrowed, owned, SHA1_SIZE};6use git_hash::SIZE_OF_SHA1_DIGEST as SHA1_SIZE;
7use git_object::{borrowed, owned};
7use std::{8use std::{
8 convert::{TryFrom, TryInto},9 convert::{TryFrom, TryInto},
9 fmt::{Debug, Formatter},10 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
2use bstr::ByteSlice;2use bstr::ByteSlice;
3use byteorder::{BigEndian, ByteOrder};3use byteorder::{BigEndian, ByteOrder};
4use filebuffer::FileBuffer;4use filebuffer::FileBuffer;
5use git_object::SHA1_SIZE;5use git_hash::SIZE_OF_SHA1_DIGEST as SHA1_SIZE;
6use std::{6use std::{
7 convert::{TryFrom, TryInto},7 convert::{TryFrom, TryInto},
8 ops::Range,8 ops::Range,
git-commitgraph/src/file/mod.rs+1−1
@@ -8,7 +8,7 @@ pub use init::Error; · 7 unmodified lines
8 8
9pub use commit::Commit;9pub use commit::Commit;
10use filebuffer::FileBuffer;10use filebuffer::FileBuffer;
11use git_object::SHA1_SIZE;11use git_hash::SIZE_OF_SHA1_DIGEST as SHA1_SIZE;
12use std::{12use std::{
13 fmt::{Display, Formatter},13 fmt::{Display, Formatter},
14 ops::Range,14 ops::Range,
git-commitgraph/src/file/verify.rs+2−1
@@ -3,7 +3,8 @@ use crate::{ · 2 unmodified lines
3 GENERATION_NUMBER_INFINITY, GENERATION_NUMBER_MAX,3 GENERATION_NUMBER_INFINITY, GENERATION_NUMBER_MAX,
4};4};
5use bstr::ByteSlice;5use bstr::ByteSlice;
6use git_object::{borrowed, owned, SHA1_SIZE};6use git_hash::SIZE_OF_SHA1_DIGEST as SHA1_SIZE;
7use git_object::{borrowed, owned};
7use std::{8use std::{
8 cmp::{max, min},9 cmp::{max, min},
9 collections::HashMap,10 collections::HashMap,