1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use std::path::PathBuf;
use anyhow::{Context as AnyhowContext, Result};
use git_repository as git;
pub fn init(directory: Option<PathBuf>) -> Result<git::discover::repository::Path> {
git_repository::create::into(
directory.unwrap_or_default(),
git::create::Options {
bare: false,
fs_capabilities: None,
},
)
.with_context(|| "Repository initialization failed")
}
pub mod commit;
pub mod config;
mod credential;
pub use credential::function as credential;
pub mod exclude;
pub mod mailmap;
pub mod odb;
pub mod remote;
pub mod revision;
pub mod tree;
pub mod verify;