Skip to content

Commit 6570808

Browse files
committed
feat: git-config is now accessible in git-repository::config. (#331)
1 parent d99453e commit 6570808

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

git-repository/src/config/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ use crate::repository::identity;
22
use crate::{bstr::BString, permission, Repository};
33
use git_features::threading::OnceCell;
44

5+
pub use git_config::*;
6+
57
pub(crate) mod cache;
68
mod snapshot;
79

@@ -18,7 +20,9 @@ pub(crate) mod section {
1820
}
1921
}
2022

23+
/// The error returned when failing to initialize the repository configuration.
2124
#[derive(Debug, thiserror::Error)]
25+
#[allow(missing_docs)]
2226
pub enum Error {
2327
#[error("Could not read configuration file")]
2428
Io(#[from] std::io::Error),

git-repository/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ pub mod create;
297297
pub mod open;
298298

299299
///
300-
mod config;
300+
pub mod config;
301301

302302
///
303303
pub mod mailmap {

0 commit comments

Comments
 (0)