feat: Add support for extra args to be passed to the git commit command (#17)

* feat: Add support for extra args to be passed to the git commit command
This commit is contained in:
Nader Zouaoui
2023-03-19 08:58:21 +01:00
committed by GitHub
parent b0d27e62ba
commit d793bf1340
3 changed files with 29 additions and 9 deletions
+3 -3
View File
@@ -8,7 +8,7 @@ import { hookCommand, isHookCalled } from './commands/githook.js';
import { prepareCommitMessageHook } from './commands/prepare-commit-msg-hook';
import { commit } from './commands/commit';
const rawArgv = process.argv.slice(2);
const extraArgs = process.argv.slice(2);
cli(
{
@@ -23,8 +23,8 @@ cli(
if (isHookCalled) {
prepareCommitMessageHook();
} else {
commit();
commit(extraArgs);
}
},
rawArgv
extraArgs
);