Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 600f96a

Browse files
committed
refactor(Commit): Added deprecation on git signoff mechanic
Signoff dedicated code is no longer necessary & removed #TODO as tests show identical args and extra-args are not an issue.
1 parent fc81dc8 commit 600f96a

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

‎commitizen/cli.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,6 @@ def main():
398398
raise InvalidCommandArgumentError(
399399
f"Invalid commitizen arguments were found before -- separator: `{' '.join(unknown_args[:pos])}`. "
400400
)
401-
# TODO: treat case when extra-args and commitizen args are identical
402401
extra_args = " ".join(unknown_args[1:])
403402
arguments["extra_cli_args"] = extra_args
404403

‎commitizen/commands/commit.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ def __call__(self):
8282
signoff: bool = self.arguments.get("signoff")
8383

8484
if signoff:
85+
out.warn("signoff mechanic is deprecated, please use `cz commit -- -s` instead.")
8586
c = git.commit(m, "-s")
8687

8788
if self.arguments.get("extra_cli_args"):

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /