[−][src]Struct git_global::Config
A container for git-global configuration options.
Fields
basedir: PathBuf
The base directory to walk when searching for git repositories.
Default: $HOME.
follow_symlinks: bool
Whether to follow symbolic links when searching for git repos.
Default: true
same_filesystem: bool
Whether to stay on the same filesystem (as basedir
) when searching
for git repos on Unix or Windows.
Default: true [on supported platforms]
ignored_patterns: Vec<String>
Path patterns to ignore when searching for git repositories.
Default: none
default_cmd: String
The git-global subcommand to run when unspecified.
Default: status
show_untracked: bool
Whether to show untracked files in output.
Default: true
cache_file: PathBuf
Path a cache file for git-global's usage.
Default: repos.txt
in the user's XDG cache directory.
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:
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
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,