Skip to main content

run_git_action

Function run_git_action 

Source
pub fn run_git_action(
    cwd: &str,
    message: &str,
    action: &str,
    include_unstaged: bool,
) -> Result<CommitPushOutcome, String>
Expand description

Commit, push, or do both for cwd. action is one of commit, commit-push, or push (validated by the caller). When include_unstaged is set, stages everything before committing. Returns the raw git stderr on any failure.