We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6faa8a8 commit b31e0ccCopy full SHA for b31e0cc
1 file changed
commitizen/commands/commit.py
@@ -125,6 +125,11 @@ def __call__(self) -> None:
125
write_message_to_file = self.arguments.get("write_message_to_file")
126
signoff = bool(self.arguments.get("signoff"))
127
128
+ if signoff:
129
+ out.warn(
130
+ "Deprecated warning: `cz commit -s` is deprecated and will be removed in v5, please use `cz commit -- -s` instead."
131
+ )
132
+
133
if self.arguments.get("all"):
134
git.add("-u")
135
@@ -147,11 +152,6 @@ def __call__(self) -> None:
147
152
if dry_run:
148
153
raise DryRunExit()
149
154
150
- if signoff:
151
- out.warn(
- "signoff mechanic is deprecated, please use `cz commit -- -s` instead."
- )
-
155
if self.config.settings["always_signoff"] or signoff:
156
extra_args = f"{extra_args} -s".strip()
157
0 commit comments