mirror of
https://github.com/di-sukharev/opencommit.git
synced 2026-04-20 03:02:51 -04:00
build
This commit is contained in:
@@ -27287,8 +27287,17 @@ async function improveCommitMessagesWithRebase({
|
||||
ce(`creating -F file for ${commit.sha}`);
|
||||
(0, import_fs2.writeFileSync)(`./commit-${i2}.txt`, improvedMessagesBySha[commit.sha]);
|
||||
});
|
||||
(0, import_fs2.writeFileSync)(
|
||||
`./rebase-exec.sh`,
|
||||
`
|
||||
#!/bin/bash
|
||||
count=$(cat count.txt)
|
||||
git commit --amend -F commit-$count.txt
|
||||
echo $(( count + 1 )) > count.txt
|
||||
`
|
||||
);
|
||||
await execPromise(
|
||||
`echo 0 > count.txt && git rebase ${commitsToImprove[0].sha}^ --exec "git commit --amend -F commit-$(cat count.txt).txt && echo $(( $(cat count.txt) + 1 )) > count.txt"`,
|
||||
`git rebase ${commitsToImprove[0].sha}^ --exec "./rebase-exec.sh"`,
|
||||
{
|
||||
env: {
|
||||
GIT_SEQUENCE_EDITOR: 'sed -i -e "s/^pick/reword/g"',
|
||||
|
||||
@@ -178,8 +178,18 @@ async function improveCommitMessagesWithRebase({
|
||||
// }
|
||||
// );
|
||||
|
||||
writeFileSync(
|
||||
`./rebase-exec.sh`,
|
||||
`
|
||||
#!/bin/bash
|
||||
count=$(cat count.txt)
|
||||
git commit --amend -F commit-$count.txt
|
||||
echo $(( count + 1 )) > count.txt
|
||||
`
|
||||
);
|
||||
|
||||
await execPromise(
|
||||
`echo 0 > count.txt && git rebase ${commitsToImprove[0].sha}^ --exec "git commit --amend -F commit-$(cat count.txt).txt && echo $(( $(cat count.txt) + 1 )) > count.txt"`,
|
||||
`git rebase ${commitsToImprove[0].sha}^ --exec "./rebase-exec.sh"`,
|
||||
{
|
||||
env: {
|
||||
GIT_SEQUENCE_EDITOR: 'sed -i -e "s/^pick/reword/g"',
|
||||
|
||||
Reference in New Issue
Block a user