Skip to main content

commit_amend

Function commit_amend 

Source
pub fn commit_amend(dir: &Path) -> Result<(), String>
Expand description

Amend the previous commit, folding in currently-staged changes and keeping its message (git commit --amend --no-edit).

§Errors

Returns git’s stderr on failure (e.g. no commit to amend).