pub struct RealGitConfig;Expand description
Shells out to the system git binary.
We deliberately keep this one shell-out because resolving user-level git
config (name, email, signing key) requires honouring git’s own config
search order (system → global → local). Reimplementing that search is
fragile; shelling out to git config --get is the safe, forward-compatible
choice. Failure (binary not found, key unset) is silently treated as “no
default” — it never hard-errors the wizard.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RealGitConfig
impl RefUnwindSafe for RealGitConfig
impl Send for RealGitConfig
impl Sync for RealGitConfig
impl Unpin for RealGitConfig
impl UnsafeUnpin for RealGitConfig
impl UnwindSafe for RealGitConfig
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