Skip to main content

commit_with_scope

Function commit_with_scope 

Source
pub fn commit_with_scope(
    repo: &Repository,
    req: &CommitRequest,
    scope: CommitScope,
    progress: &mut dyn ProgressSink,
) -> Result<CommitOutcome>
Expand description

Record a commit using scope to decide how the index is prepared.

ยงErrors

Same as create_commit and commit_worktree, plus Error::PartialCommitDuringMerge for CommitScope::Paths during an in-progress merge, and pathspec validation errors.