History

[commitgraph] Add some doc comments.

Conor Davis committed 6 years ago

Commit 6cf5cd81 parent 66588f23 files · +3 −0Browse files

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

Unified · Split

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