History

all docs for git-commitgraph::file

Sebastian Thiel committed 5 years ago

Commit 8b262011 parent 23bba1c6 files · +54 −20Browse files

Showing the changes to git-commitgraph/src/file/init.rs (1 of 6 files). Show all

Unified · Split

git-commitgraph/src/file/init.rs+3−0
@@ -11,7 +11,9 @@ use std::{ · 10 unmodified lines
1111
1212 type ChunkId = [u8; 4];
1313
14+/// The error used in [`File::at()`].
1415 #[derive(thiserror::Error, Debug)]
16+#[allow(missing_docs)]
1517 pub enum Error {
1618 #[error("Commit-graph {:?} chunk contains {from_chunk} base graphs, but commit-graph file header claims {from_header} base graphs", BASE_GRAPHS_LIST_CHUNK_ID.as_bstr())]
1719 BaseGraphMismatch { from_header: u8, from_chunk: u32 },
@@ -63,6 +65,7 @@ const OID_LOOKUP_CHUNK_ID: ChunkId = *b"OIDL"; · 45 unmodified lines
6365 const SENTINEL_CHUNK_ID: ChunkId = [0u8; 4];
6466
6567 impl File {
68+ /// Try to parse the commit graph file at `path`.
6669 pub fn at(path: impl AsRef<Path>) -> Result<File, Error> {
6770 Self::try_from(path.as_ref())
6871 }