Showing the changes to git-commitgraph/src (3 of 3 files). Show all
Unified · Split
| @@ -1,3 +1,4 @@ | |||
| 1 | //! Operations on a single commit-graph file. | ||
| 1 | use filebuffer::FileBuffer; | 2 | use filebuffer::FileBuffer; |
| 2 | use git_object::SHA1_SIZE; | 3 | use git_object::SHA1_SIZE; |
| 3 | use std::ops::Range; | 4 | use std::ops::Range; |
| @@ -1,3 +1,4 @@ | |||
| 1 | //! Operations on a complete commit graph. | ||
| 1 | mod access; | 2 | mod access; |
| 2 | mod init; | 3 | mod init; |
| 3 | 4 | ||
| @@ -7,4 +7,5 @@ pub mod graph; · 6 unmodified lines | |||
| 7 | pub use file::commit::Commit; | 7 | pub use file::commit::Commit; |
| 8 | pub use graph::{Graph, GraphPosition}; | 8 | pub use graph::{Graph, GraphPosition}; |
| 9 | 9 | ||
| 10 | /// The maximum number of commits that can be stored in a commit graph. | ||
| 10 | pub const MAX_COMMITS: u32 = (1 << 30) + (1 << 29) + (1 << 28) - 1; | 11 | pub const MAX_COMMITS: u32 = (1 << 30) + (1 << 29) + (1 << 28) - 1; |