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 3BED8481DD for ; Sat, 3 May 2025 00:58:23 +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=1746233906; cv=none; b=p07w9SmAwsffrIoqy9AVTET8sp1J1T40jD2JoC+HM0O6S0PXVAkeNBW81KuqYxqTV1TN76Lg8UgLtu6yunllt8jA8j7ZDcZ2zJqUgNOx2nc7Nro+RV78/kaSMX96dQDJf2/jGJWQnqvHf4zdmugoh4cJ7B+TvB9KayGGgYPb/8k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746233906; c=relaxed/simple; bh=DTZ8h2KepBEiTyKLK+8V5vuG8dHi21d8/N2/AjmNyUc=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WG/A/r/6vGcDngY6nbgsd2h0+KYt34+pS70EW+vOK7s4k3nm8icE9RpWppM2JhTVp4+9KPgdJdU66wFDApumQ++HHsKoHbpTmtylZYyL6h+Gm0elqjMgmmChVPtI31Svrv7VpIzN7qERb0ABJnqyLbFjxhd+rPN1e3cX9oN1tRY= 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=iSED9FJ7; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=iqrBXGcN; 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="iSED9FJ7"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="iqrBXGcN" Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfhigh.phl.internal (Postfix) with ESMTP id 3132B1140205; Fri, 2 May 2025 20:58:23 -0400 (EDT) Received: from phl-frontend-01 ([10.202.2.160]) by phl-compute-03.internal (MEProxy); Fri, 02 May 2025 20:58:23 -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=1746233903; x= 1746320303; bh=QgONr+NPBqw396Xq4jA2liJlrK2W6yPZ99UCOs7bbMs=; b=i SED9FJ7EHaC04PI5zb9c7nHmnX6sn9YstdcO9cIKHWguelYDo5uZIZ0aZl78WzUb nRXtTaa5w0G1Gqx7hgTzySO0Mg9beTMtoF8DKBAe0Y0c6GqEFF282MVMbE798jDX h+d8UEVHmMD9tzGV4SlptpCQkb6Bl8Thf67Ls8QQPLJ7K2XtoCvm57g9bOMOqdFr /ZB6/HOFCVQh5J8lbOEZraEkrKTGlC7V8cU+gBWfnQR0MTbWrtNIHbBo1QUPkCZM Pab6KCyMysDSjFJTgOj7syAoayDm7BNroGz5jg9E8cY3EdbFgL0mHbCWfkbZ87F/ GbIJJ1F2IG+0UOtxqRQBA== 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=1746233903; x=1746320303; bh=QgONr+NPBqw396Xq4jA2liJlrK2W 6yPZ99UCOs7bbMs=; b=iqrBXGcNSM/3aY2tty/9KLJQkKefKmrEUa8MbwCwkpib 8NkzHBqjpjjAddlAK3/ZeCZ/z9quLk3ZoRIdgEuY6M2H1Swj+dnK7R9lrfcgSlKS uzHRbtB26qRX19QDz46wX//bvbcmGodTbacdYsaYw+mj9boONZUSP+HorqLZ7SqG gYK4zoqdMVaDMQdSq4hDZaGCq7x3D6STGKP7B/65Zaiv84g35pfFsioAGmWYOjpP SuKniqmIu8ZhRmF2f+Z6EEpRsFezSi1tn0nDUbLyluSEUxYybQCQanZakQhjJ3S2 e5I41hS/mJQs9Hl6obx65OBTgA1J7jzwZ1Gw8WdlCA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvjeefleehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvf fufffkofgjfhgggfestdekredtredttdenucfhrhhomheplfhunhhiohcuvecujfgrmhgr nhhouceoghhithhsthgvrhesphhosghogidrtghomheqnecuggftrfgrthhtvghrnheple evieefieeuffeugefhveeugefgfeevvdefleevuedvfedvudefkeehtdeftdegnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepghhithhsthgvrh esphhosghogidrtghomhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhht pdhrtghpthhtohepghhithesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhope hgihhtshhtvghrsehpohgsohigrdgtohhm X-ME-Proxy: Feedback-ID: if26b431b:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 2 May 2025 20:58:22 -0400 (EDT) From: Junio C Hamano To: git@vger.kernel.org Subject: [PATCH v3 4/6] whatchanged: require --i-still-use-this Date: Fri, 2 May 2025 17:58:12 -0700 Message-ID: <20250503005814.3030099-5-gitster@pobox.com> X-Mailer: git-send-email 2.49.0-601-ga5925c3955 In-Reply-To: <20250503005814.3030099-1-gitster@pobox.com> References: <20250501225958.2947677-1-gitster@pobox.com> <20250503005814.3030099-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. 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'