Skip to content

Commit

Permalink
Merge pull request #27 from ukleinek/fixup-amend
Browse files Browse the repository at this point in the history
Properly squash commits created by git commit --fixup=amend:$rev
  • Loading branch information
michaelolbrich authored Nov 1, 2023
2 parents e3dff52 + 419b0da commit acf990f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion umpf
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ rebase_branch() {
echo "# umpf-hashinfo: ${topicrev}" >&${series_out}
${GIT} rev-parse HEAD > "${STATE}/prev_head"
if ${GIT} log --oneline "${base}..${topicrev}" | grep -q '\(fixup\|squash\)!'; then
if ${GIT} log --oneline "${base}..${topicrev}" | grep -q '\(amend\|fixup\|squash\)!'; then
args="-i --autosquash"
fi
if ! ${GIT} rebase -q ${args} --onto HEAD "${base}" "${topicrev}" >&2; then
Expand Down

0 comments on commit acf990f

Please sign in to comment.