Struct git_repository::config::path::interpolate::Context
pub struct Context<'a> {
pub git_install_dir: Option<&'a Path>,
pub home_dir: Option<&'a Path>,
pub home_for_user: Option<fn(_: &str) -> Option<PathBuf>>,
}Expand description
Options for interpolating paths with Path::interpolate().
Fields§
§git_install_dir: Option<&'a Path>The location where gitoxide or git is installed. If None, %(prefix) in paths will cause an error.
home_dir: Option<&'a Path>The home directory of the current user. If None, ~/ in paths will cause an error.
home_for_user: Option<fn(_: &str) -> Option<PathBuf>>A function returning the home directory of a given user. If None, ~name/ in paths will cause an error.