From: Junio C Hamano Date: Thu, 01 May 2025 22:59:58 GMT Subject: [PATCH v2 2/2] whatchanged: require --i-still-use-this Message-ID: <20250501225958.2947677-3-gitster@pobox.com> In-Reply-To: <20250501225958.2947677-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. While at it, update the documentation page to use the new [synopsis] facility to mark-up the SYNOPSIS part. Two test scripts on fast-import run "git whatchanged" without even checking the output from it. It might still help manual debugging so I've replaced these calls with "git log --raw", but we probably are better off removing such useless git operations that do not contribute to the tests. Such a clean-up is left outside the scope of this patch. Signed-off-by: Junio C Hamano --- Documentation/git-whatchanged.adoc | 10 ++++++++-- builtin/log.c | 13 +++++++++++++ t/t4013-diff-various.sh | 17 +++++++++++++++-- t/t4202-log.sh | 14 +++++++++----- t/t9300-fast-import.sh | 12 ++++++------ t/t9301-fast-import-notes.sh | 2 +- 6 files changed, 52 insertions(+), 16 deletions(-) diff --git a/Documentation/git-whatchanged.adoc b/Documentation/git-whatchanged.adoc index 8e55e0bb1e..d21484026f 100644 --- a/Documentation/git-whatchanged.adoc +++ b/Documentation/git-whatchanged.adoc @@ -8,8 +8,14 @@ git-whatchanged - Show logs with differences each commit introduces SYNOPSIS -------- -[verse] -'git whatchanged'