Skip to content

Commit f4fe43c

Browse files
bearomorphismLee-W
authored andcommitted
fix(commit): emit deprecated warning of cz commit -s
1 parent 6abbc53 commit f4fe43c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

commitizen/commands/commit.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ def __call__(self) -> None:
125125
write_message_to_file = self.arguments.get("write_message_to_file")
126126
signoff = bool(self.arguments.get("signoff"))
127127

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+
128133
if self.arguments.get("all"):
129134
git.add("-u")
130135

@@ -147,11 +152,6 @@ def __call__(self) -> None:
147152
if dry_run:
148153
raise DryRunExit()
149154

150-
if signoff:
151-
out.warn(
152-
"signoff mechanic is deprecated, please use `cz commit -- -s` instead."
153-
)
154-
155155
if self.config.settings["always_signoff"] or signoff:
156156
extra_args = f"{extra_args} -s".strip()
157157

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy