Showing the changes to git-commitgraph (6 of 31 files). Show all
Unified · Split
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | [package] |
| 2 | 2 | name = "git-commitgraph" |
| 3 | −version = "0.2.0" | |
| 3 | +version = "0.3.0" | |
| 4 | 4 | repository = "https://github.com/Byron/gitoxide" |
| 5 | 5 | 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." |
| 6 | 6 | license = "MIT/Apache-2.0" |
| @@ -17,7 +17,8 @@ serde1 = ["serde", "git-object/serde1"] · 10 unmodified lines | ||
| 17 | 17 | |
| 18 | 18 | [dependencies] |
| 19 | 19 | 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" } | |
| 21 | 22 | |
| 22 | 23 | bstr = { version = "0.2.13", default-features = false, features = ["std"] } |
| 23 | 24 | byteorder = "1.2.3" |
| @@ -1,5 +1,6 @@ | ||
| 1 | 1 | 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}; | |
| 3 | 4 | use std::{ |
| 4 | 5 | convert::{TryFrom, TryInto}, |
| 5 | 6 | fmt::{Debug, Formatter}, |
| @@ -3,7 +3,8 @@ use crate::{ · 2 unmodified lines | ||
| 3 | 3 | graph, |
| 4 | 4 | }; |
| 5 | 5 | 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}; | |
| 7 | 8 | use std::{ |
| 8 | 9 | convert::{TryFrom, TryInto}, |
| 9 | 10 | fmt::{Debug, Formatter}, |
| @@ -2,7 +2,7 @@ use crate::file::{File, COMMIT_DATA_ENTRY_SIZE, FAN_LEN, SIGNATURE}; · 1 unmodified line | ||
| 2 | 2 | use bstr::ByteSlice; |
| 3 | 3 | use byteorder::{BigEndian, ByteOrder}; |
| 4 | 4 | use filebuffer::FileBuffer; |
| 5 | −use git_object::SHA1_SIZE; | |
| 5 | +use git_hash::SIZE_OF_SHA1_DIGEST as SHA1_SIZE; | |
| 6 | 6 | use std::{ |
| 7 | 7 | convert::{TryFrom, TryInto}, |
| 8 | 8 | ops::Range, |
| @@ -8,7 +8,7 @@ pub use init::Error; · 7 unmodified lines | ||
| 8 | 8 | |
| 9 | 9 | pub use commit::Commit; |
| 10 | 10 | use filebuffer::FileBuffer; |
| 11 | −use git_object::SHA1_SIZE; | |
| 11 | +use git_hash::SIZE_OF_SHA1_DIGEST as SHA1_SIZE; | |
| 12 | 12 | use std::{ |
| 13 | 13 | fmt::{Display, Formatter}, |
| 14 | 14 | ops::Range, |
| @@ -3,7 +3,8 @@ use crate::{ · 2 unmodified lines | ||
| 3 | 3 | GENERATION_NUMBER_INFINITY, GENERATION_NUMBER_MAX, |
| 4 | 4 | }; |
| 5 | 5 | 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}; | |
| 7 | 8 | use std::{ |
| 8 | 9 | cmp::{max, min}, |
| 9 | 10 | collections::HashMap, |