-
-
Notifications
You must be signed in to change notification settings - Fork 281
Add --commit-args command line option to cz commit #451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I am interesting to implementing this feature. |
It seems similar to this discussion: Which of all the proposed methods would be best? |
@woile I read the discussion of #248 and I think
|
I like the first solution a bit more. @woile what do you think? |
Hi all, thanks for the consideration on this ticket. Really keen for this - is anyone picking it up? |
@adamcunnington-mlg AFAIK, no one is picking it. Feel free to create a PR if you're interested in it. Thanks! |
I've not had chance to pick this up but would really love this |
What if we have an exclude list?
…On Thu, 7 Apr 2022, 15:24 Bogay, ***@***.***> wrote:
@woile <https://github.com/Woile> I read the discussion of #248
<#248> and I think --
is a good idea.
About handing invalid arguments, I come up with two approach:
1. Directly pass all arguments after -- to git commit and let git
handle them. Leave the responsibility of giving correct args to the user.
But there are so many edge cases might brake cz's behavior, which
affects the UX.
2. Add a whitelist to filter which argument can use. For example,
-S/--gpg-sign, -s/--signoff, -n/--no-verify. At least I saw issues
which discuss about these features. But this is less flexible if the
whitelist is hard-coded in source.
—
Reply to this email directly, view it on GitHub
<#451 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AATXJWFGD2BUCGK4ER5QN53VD4R4ZANCNFSM5HNO5DRA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Is anybody working on this? |
AFAIK, there's no one working on it. Feel free to take it :) |
… for `cz commit` command Additional edits were made in class `commitizen.commands.Commit` and `commit` func from `commitizen.git` Closes commitizen-tools#451
Hi @adamcunnington-mlg, I just took a look. The idea is great. But we still need some test and doc |
… for `cz commit` command Additional edits were made in class `commitizen.commands.Commit` and `commit` func from `commitizen.git` Closes commitizen-tools#451
@Lee-W I've added tests on the raises. I wanted to add a test on successfully passing the extra arguments to the As for documentation, I can spare the time to add it. Did you have anything in mind? |
Added some simple documentation for the syntax in |
… for `cz commit` command Additional edits were made in class `commitizen.commands.Commit` and `commit` func from `commitizen.git` Closes commitizen-tools#451
Modifications done, branch rebased, ready for next round |
… for `cz commit` command Additional edits were made in class `commitizen.commands.Commit` and `commit` func from `commitizen.git` Closes commitizen-tools#451
… for `cz commit` command Additional edits were made in class `commitizen.commands.Commit` and `commit` func from `commitizen.git` Closes #451
Given
cz commit
wrapsgit commit
, it would be great to be able to pass arbitrary args to the underlying git commit. This is a common pattern, for example, pip-tools' pip-compile has a--pip-args
option.Specifically, I need to be able to pass
--no-verify
to some commits to occasionally brute force supress hooks but I think you can just allow the user to pass a string of arbitrary--commit-args
to cz commit which you then pass through to git commit.The text was updated successfully, but these errors were encountered: