pub enum ConfigScope {
Global,
Local,
System,
}Expand description
Which config file git config operates on.
Variants§
Global
~/.gitconfig (or ~/.config/git/config). The default for upstream
git lfs install.
Local
The current repository’s .git/config.
System
/etc/gitconfig. Usually requires root.
Trait Implementations§
Source§impl Clone for ConfigScope
impl Clone for ConfigScope
Source§fn clone(&self) -> ConfigScope
fn clone(&self) -> ConfigScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConfigScope
impl Debug for ConfigScope
Source§impl PartialEq for ConfigScope
impl PartialEq for ConfigScope
Source§fn eq(&self, other: &ConfigScope) -> bool
fn eq(&self, other: &ConfigScope) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ConfigScope
impl Eq for ConfigScope
impl StructuralPartialEq for ConfigScope
Auto Trait Implementations§
impl Freeze for ConfigScope
impl RefUnwindSafe for ConfigScope
impl Send for ConfigScope
impl Sync for ConfigScope
impl Unpin for ConfigScope
impl UnsafeUnpin for ConfigScope
impl UnwindSafe for ConfigScope
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