Skip to content

Commit

Permalink
contrib/jj-am.sh: fix order of commit creation and patching
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Janik <[email protected]>
  • Loading branch information
tim-janik committed Dec 13, 2024
1 parent 74bbfa8 commit 8e314b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/jj-am.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ jj_commit()
--config-toml "user.email=\"$EMAIL\""
--message="$SUBJECT$NL$BODY"
)
# create commit
jj new "${ARGS[@]}"
# try patch
patch -p1 < "$PATCH"
# apply
jj new "${ARGS[@]}"
)

# == Process ==
Expand Down

0 comments on commit 8e314b5

Please sign in to comment.