Struct git_branch_stash::config::RepoConfig
source · pub struct RepoConfig {
pub protected_branches: Option<Vec<String>>,
pub capacity: Option<usize>,
}
Fields§
§protected_branches: Option<Vec<String>>
§capacity: Option<usize>
Implementations§
source§impl RepoConfig
impl RepoConfig
pub fn from_all(repo: &Repository) -> Result<Self>
pub fn from_repo(repo: &Repository) -> Result<Self>
pub fn from_workdir(repo: &Repository) -> Result<Self>
pub fn from_env() -> Self
pub fn from_defaults() -> Self
pub fn from_gitconfig(config: &Config) -> Self
pub fn write_repo(&self, repo: &Repository) -> Result<()>
pub fn to_gitconfig(&self, config: &mut Config) -> Result<()>
pub fn update(self, other: Self) -> Self
pub fn protected_branches(&self) -> &[String]
pub fn capacity(&self) -> Option<usize>
Trait Implementations§
source§impl Clone for RepoConfig
impl Clone for RepoConfig
source§fn clone(&self) -> RepoConfig
fn clone(&self) -> RepoConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RepoConfig
impl Debug for RepoConfig
source§impl Default for RepoConfig
impl Default for RepoConfig
source§fn default() -> RepoConfig
fn default() -> RepoConfig
Returns the “default value” for a type. Read more