From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fhigh-a2-smtp.messagingengine.com (fhigh-a2-smtp.messagingengine.com [103.168.172.153]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B83A2221F31 for ; Thu, 1 May 2025 23:00:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.153 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746140409; cv=none; b=Pjr4CjTWLsBnIEBVTjAhfBZdVzRTl14f1UqtBBNjpv41/BgczgDSqcpGOl+H1hq/ARu0hM6YQd5MsPuba1GPbg/81C6EKEDEXoOIs6CjfwwDhx4hb5sg7jDrUPZUpfUXzwpGyyCwq8/lIzgxWAC98GBBvhXwgoWzXqlSurSgM3E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746140409; c=relaxed/simple; bh=9JBSMYGb5H3SsjUZrTRctBycUsA3fszUORZ0lEny0As=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mgRcA+SeZVKXbY9xOR4j0G1WzCRUjCGHtEBb9p+YmxbqxKaCXXrY3rX4TC32Cd+/zkwJktIZBge0N092Joi8OxGCN8VIDwGfC29p8AEMQhV6XCmD35VEzMaMYE6j7iIyvXi1s7nLx9Jzj3FD3PZ91hzUVmy7el4TA/UTY7Q0eCo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com; spf=pass smtp.mailfrom=pobox.com; dkim=pass (2048-bit key) header.d=pobox.com header.i=@pobox.com header.b=fxG5Wl4G; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=YA2VI7ST; arc=none smtp.client-ip=103.168.172.153 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pobox.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pobox.com header.i=@pobox.com header.b="fxG5Wl4G"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="YA2VI7ST" Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfhigh.phl.internal (Postfix) with ESMTP id 83C661140259; Thu, 1 May 2025 19:00:05 -0400 (EDT) Received: from phl-frontend-02 ([10.202.2.161]) by phl-compute-10.internal (MEProxy); Thu, 01 May 2025 19:00:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pobox.com; h=cc :content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm2; t=1746140405; x= 1746226805; bh=cPDQN0o+kCkRJdgbBB0OzOrjKrfigChfJzoecgfda8U=; b=f xG5Wl4GXko2PNfFnp+rJ/++cPPanR2FyokaEet2YTfh3IrcsqvEmuFOTkBzhsL28 IdJ7XpCvnKqvU0cw7hAkkptG2N0H6c1CLsUsydXLrcoMVYT7BXN2A0plu2YdxF1f sPjlQTmGsd4s8BT1vzp1lMfOByzCSxEaeB9ong3w3vFBwJQ3Bx+yHC9vReiLRIrE dSJaHCm760aAaYet7Msk/8CGOIXU3S7HNI9PUyXsQlLwfAvXt1eeHu7jPMefjwtb iR0KesU9gua7ISrJ9WateAT/qFuJTZp7chceezt3psZNc1UZAo+o4+lCSrA9kBSl yzJkUAizH9A47REDitl4w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1746140405; x=1746226805; bh=cPDQN0o+kCkRJdgbBB0OzOrjKrfi gChfJzoecgfda8U=; b=YA2VI7STz8x1UQfUbIY0cuSSCPUtXZ6i7oomxpIC8gsA bSI+1TVNMDEnlpBA5VIi2xu/nMJN29Y0ckqksJZ2YFABMxEN8K/ILDUMC+eWvvId vNg8Rxa1rL6VX1Am9uo/1yWuZjP4wC9II7WY4H/HaYr1Esnfv4Xy4BqLsgp/j9S+ kl2RNB/b3F4BKAxQdoAOZpMDmHeSDqj9ocnTqhVCq0Y5Zpn+P5VJWgi/BalzkR3u QvIFyMpSw+UeRNoUS32HtbPDsaET7aCCNxzYavorHFNAsuSZ6b2pgXRnqMLGft+j 9gMFZKGuRMMfs5QScZUt8Cnd9jikbAUIOfDEfdCv1A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvjedtkeegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvf fufffkofgjfhgggfestdekredtredttdenucfhrhhomheplfhunhhiohcuvecujfgrmhgr nhhouceoghhithhsthgvrhesphhosghogidrtghomheqnecuggftrfgrthhtvghrnheple evieefieeuffeugefhveeugefgfeevvdefleevuedvfedvudefkeehtdeftdegnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepghhithhsthgvrh esphhosghogidrtghomhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhht pdhrtghpthhtohepghhithesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhope hgihhtshhtvghrsehpohgsohigrdgtohhm X-ME-Proxy: Feedback-ID: if26b431b:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 1 May 2025 19:00:05 -0400 (EDT) From: Junio C Hamano To: git@vger.kernel.org Subject: [PATCH v2 2/2] whatchanged: require --i-still-use-this Date: Thu, 1 May 2025 15:59:58 -0700 Message-ID: <20250501225958.2947677-3-gitster@pobox.com> X-Mailer: git-send-email 2.49.0-599-gc9a5c860a0 In-Reply-To: <20250501225958.2947677-1-gitster@pobox.com> References: <20250501213452.370729-1-gitster@pobox.com> <20250501225958.2947677-1-gitster@pobox.com> Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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'