Skip to content

Commit

Permalink
feat: git-config is now accessible in git-repository::config. (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Jul 22, 2022
1 parent d99453e commit 6570808
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions git-repository/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ use crate::repository::identity;
use crate::{bstr::BString, permission, Repository};
use git_features::threading::OnceCell;

pub use git_config::*;

pub(crate) mod cache;
mod snapshot;

Expand All @@ -18,7 +20,9 @@ pub(crate) mod section {
}
}

/// The error returned when failing to initialize the repository configuration.
#[derive(Debug, thiserror::Error)]
#[allow(missing_docs)]
pub enum Error {
#[error("Could not read configuration file")]
Io(#[from] std::io::Error),
Expand Down
2 changes: 1 addition & 1 deletion git-repository/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ pub mod create;
pub mod open;

///
mod config;
pub mod config;

///
pub mod mailmap {
Expand Down

0 comments on commit 6570808

Please sign in to comment.