Skip to content

Commit 069fbb7

Browse files
SCrockyLee-W
authored andcommitted
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 e91ea40 commit 069fbb7

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
@@ -465,7 +465,6 @@ def main():
465465
raise InvalidCommandArgumentError(
466466
f"Invalid commitizen arguments were found before -- separator: `{' '.join(unknown_args[:pos])}`. "
467467
)
468-
# TODO: treat case when extra-args and commitizen args are identical
469468
extra_args = " ".join(unknown_args[1:])
470469
arguments["extra_cli_args"] = extra_args
471470

commitizen/commands/commit.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def __call__(self):
9898
)
9999

100100
if signoff:
101+
out.warn("signoff mechanic is deprecated, please use `cz commit -- -s` instead.")
101102
c = git.commit(m, "-s")
102103

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

0 commit comments

Comments
 (0)