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.