pub struct GitConfig {
pub default_branch: String,
pub sign_commits: bool,
pub gpg_key: Option<String>,
pub gpg_program: Option<String>,
pub pull_rebase: bool,
}Fields§
§default_branch: StringDefault branch name for new repos
sign_commits: boolAuto-sign commits with GPG
gpg_key: Option<String>GPG key ID
gpg_program: Option<String>0.7.35 — Binary used to invoke GPG. Defaults to gpg; set this
when your distro ships GPG as gpg2 or you have a vendor-built
install at a different path. Mirrors git’s gpg.program.
pull_rebase: boolAlways use rebase instead of merge for pulls
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GitConfig
impl<'de> Deserialize<'de> for GitConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GitConfig
impl RefUnwindSafe for GitConfig
impl Send for GitConfig
impl Sync for GitConfig
impl Unpin for GitConfig
impl UnsafeUnpin for GitConfig
impl UnwindSafe for GitConfig
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