mirror of
https://github.com/di-sukharev/opencommit.git
synced 2026-04-20 03:02:51 -04:00
build
This commit is contained in:
@@ -28002,21 +28002,12 @@ async function improveCommitMessagesWithRebase({
|
||||
"rebase",
|
||||
"-i",
|
||||
`origin/${base}`,
|
||||
"--exec",
|
||||
"git",
|
||||
"commit",
|
||||
"--amend",
|
||||
"--no-edit",
|
||||
"-F",
|
||||
tempFilePath
|
||||
`"--exec git commit --amend --no-edit -F ${tempFilePath}"`
|
||||
]);
|
||||
(0, import_fs2.unlinkSync)(tempFilePath);
|
||||
ce("Commit improved \u{1F31E}");
|
||||
} catch (error) {
|
||||
throw error;
|
||||
} finally {
|
||||
ce(
|
||||
"\u{1F4DD} Commit messages improved with an interactive rebase: `$ rebase -i`"
|
||||
);
|
||||
}
|
||||
}
|
||||
ce("Force pushing interactively rebased commits into remote origin.");
|
||||
|
||||
@@ -154,25 +154,16 @@ async function improveCommitMessagesWithRebase({
|
||||
'rebase',
|
||||
'-i',
|
||||
`origin/${base}`,
|
||||
'--exec',
|
||||
'git',
|
||||
'commit',
|
||||
'--amend',
|
||||
'--no-edit',
|
||||
'-F',
|
||||
tempFilePath
|
||||
`"--exec git commit --amend --no-edit -F ${tempFilePath}"`
|
||||
]);
|
||||
|
||||
unlinkSync(tempFilePath);
|
||||
|
||||
outro('Commit improved 🌞');
|
||||
// await execa('git', ['commit', '--amend', '-m', improvedMessage]);
|
||||
// await execa('git', ['rebase', '--continue']);
|
||||
} catch (error) {
|
||||
throw error;
|
||||
} finally {
|
||||
outro(
|
||||
'📝 Commit messages improved with an interactive rebase: `$ rebase -i`'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user