From: Junio C Hamano Date: Sat, 03 May 2025 00:58:12 GMT Subject: [PATCH v3 4/6] whatchanged: require --i-still-use-this Message-ID: <20250503005814.3030099-5-gitster@pobox.com> In-Reply-To: <20250503005814.3030099-1-gitster@pobox.com> The documentation of "git whatchanged" is pretty explicit that this has retained for historical reasons to help those whose fingers cannot be retrained. Let's see if they still are finding it hard to type "git log --raw" instead of "git whatchanged" by marking the command as "nominated for removal", and require "--i-still-use-this" on the command line. Adjust the tests so that the option is passed when we invoke the command. In addition, we test that the command fails when "--i-still-use-this" is not given. While at it, update the documentation page to use the new [synopsis] facility to mark-up the SYNOPSIS part. Signed-off-by: Junio C Hamano --- Documentation/git-whatchanged.adoc | 4 ++-- builtin/log.c | 13 +++++++++++++ t/t4013-diff-various.sh | 17 +++++++++++++++-- t/t4202-log.sh | 14 +++++++++----- 4 files changed, 39 insertions(+), 9 deletions(-) diff --git a/Documentation/git-whatchanged.adoc b/Documentation/git-whatchanged.adoc index 8e55e0bb1e..d400b68d4b 100644 --- a/Documentation/git-whatchanged.adoc +++ b/Documentation/git-whatchanged.adoc @@ -8,8 +8,8 @@ git-whatchanged - Show logs with differences each commit introduces SYNOPSIS -------- -[verse] -'git whatchanged'