Struct git_repository::config::file::includes::conditional::Context
source · pub struct Context<'a> {
pub git_dir: Option<&'a Path>,
pub branch_name: Option<&'a FullNameRef>,
}Expand description
Options to handle conditional includes like includeIf.<condition>.path.
Fields§
§git_dir: Option<&'a Path>The location of the .git directory. If None, gitdir conditions cause an error.
Used for conditional includes, e.g. includeIf.gitdir:… or includeIf:gitdir/i….
branch_name: Option<&'a FullNameRef>The name of the branch that is currently checked out. If None, onbranch conditions cause an error.
Used for conditional includes, e.g. includeIf.onbranch:main.…