Skip to main content

should_sign_commit

Function should_sign_commit 

Source
pub fn should_sign_commit(
    config: &ConfigSet,
    sign_override: Option<bool>,
) -> Result<bool>
Expand description

Whether a new commit object should be signed.

Honors commit.gpgsign (and commit.gpgSign) when sign_override is None. When sign_override is Some(true) or Some(false), that choice wins over config.

ยงErrors

Returns Error::Config when commit.gpgsign holds a non-boolean value.