Struct git_stack::config::RepoConfig
source · pub struct RepoConfig {Show 14 fields
pub editor: Option<String>,
pub protected_branches: Option<Vec<String>>,
pub protect_commit_count: Option<usize>,
pub protect_commit_age: Option<Duration>,
pub auto_base_commit_count: Option<usize>,
pub stack: Option<Stack>,
pub push_remote: Option<String>,
pub pull_remote: Option<String>,
pub show_format: Option<Format>,
pub show_commits: Option<ShowCommits>,
pub show_stacked: Option<bool>,
pub auto_fixup: Option<Fixup>,
pub auto_repair: Option<bool>,
pub capacity: Option<usize>,
}
Fields§
§editor: Option<String>
§protected_branches: Option<Vec<String>>
§protect_commit_count: Option<usize>
§protect_commit_age: Option<Duration>
§auto_base_commit_count: Option<usize>
§stack: Option<Stack>
§push_remote: Option<String>
§pull_remote: Option<String>
§show_format: Option<Format>
§show_commits: Option<ShowCommits>
§show_stacked: Option<bool>
§auto_fixup: Option<Fixup>
§auto_repair: Option<bool>
§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 editor(&self) -> &str
pub fn protected_branches(&self) -> &[String]
pub fn protect_commit_count(&self) -> Option<usize>
pub fn protect_commit_age(&self) -> Duration
pub fn auto_base_commit_count(&self) -> Option<usize>
pub fn push_remote(&self) -> &str
pub fn pull_remote(&self) -> &str
pub fn stack(&self) -> Stack
pub fn show_format(&self) -> Format
pub fn show_commits(&self) -> ShowCommits
pub fn show_stacked(&self) -> bool
pub fn auto_fixup(&self) -> Fixup
pub fn auto_repair(&self) -> bool
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
Auto Trait Implementations§
impl RefUnwindSafe for RepoConfig
impl Send for RepoConfig
impl Sync for RepoConfig
impl Unpin for RepoConfig
impl UnwindSafe for RepoConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
source§fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>
fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.