Skip to content

Commit

Permalink
let fixup helpers add the files to the index
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniDigger committed Nov 1, 2024
1 parent db4e833 commit 4a1bd14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ abstract class FixupFilePatches : BaseTask() {
@TaskAction
fun run() {
val git = Git(repo)
git("commit", "add", ".").executeOut()
git("commit", "--fixup", "file").executeOut()
git("-c", "sequence.editor=:", "rebase", "-i", "--autosquash", "mache/main").executeOut()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ abstract class SetupPaperScript : BaseTask() {
"Puts the current source changes into the file patches commit",
listOf(
"cd %root%/paper-server/src/vanilla/java",
"git add .",
"git commit --fixup file",
"git -c sequence.editor=: rebase -i --autosquash mache/main"
)
Expand All @@ -82,6 +83,7 @@ abstract class SetupPaperScript : BaseTask() {
"Puts the current resource changes into the file patches commit",
listOf(
"cd %root%/paper-server/src/vanilla/resources",
"git add .",
"git commit --fixup file",
"git -c sequence.editor=: rebase -i --autosquash mache/main"
)
Expand Down

0 comments on commit 4a1bd14

Please sign in to comment.