[−][src]Struct git_global::Config
A container for git-global configuration options.
Fields
basedir: String
The base directory to walk when searching for git repositories.
ignored_patterns: Vec<String>
Path patterns to ignore when searching for git repositories.
cache_file: PathBuf
Path a cache file for git-global's usage.
Methods
impl Config
[src]
pub fn new() -> Config
[src]
Create a new Config
with the default behavior, first checking global
git config options in ~/.gitconfig, then using defaults:
basedir
:global.basedir
, or user's home directoryignored_patterns
:global.ignore
, or nothingcache_file
:repos.txt
in the user's XDG cache directory
pub fn get_repos(&mut self) -> Vec<Repo>
[src]
Returns all known git repos, populating the cache first, if necessary.
pub fn clear_cache(&mut self)
[src]
Clears the cache of known git repos, forcing a re-scan on the next
get_repos()
call.
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,