Skip to main content

GitConfig

Trait GitConfig 

Source
pub trait GitConfig {
    // Required method
    fn get(&self, key: &str) -> Option<String>;
}
Expand description

Abstraction over git config --get <key> so tests can avoid a real git binary.

Required Methods§

Source

fn get(&self, key: &str) -> Option<String>

Return the value of git config --get <key>, or None if unset / unavailable.

Implementors§