🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #1944

[PATCH 1/4] ident: remove unused author_ident_sufficiently_given()

#1944
From: Junio C Hamano
Date: Fri, 30 Oct 2026 17:39
48 lines
13991 bytes
A pair of functions {author,committer}_ident_sufficiently_given()
were created to replace user_ident_explicitly_given() in d6991ceedc
(ident: keep separate "explicit" flags for author and committer,
2012-11-14).

But author_ident_sufficiently_given() is never used in our history.
We only check if committer ident is sufficiently given and use it to
nudge the user to set user.{name,email} configuration variables.

Remove the unused author_ident_sufficiently_given() function.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
 ident.c | 5 -----
 ident.h | 1 -
 2 files changed, 6 deletions(-)

diff --git a/ident.c b/ident.c
index 0b7aacecd7..eb73d073d8 100644
--- a/ident.c
+++ b/ident.c
@@ -602,11 +602,6 @@ int committer_ident_sufficiently_given(void)
 	return ident_is_sufficient(committer_ident_explicitly_given);
 }
 
-int author_ident_sufficiently_given(void)
-{
-	return ident_is_sufficient(author_ident_explicitly_given);
-}
-
 static int set_ident(const char *var, const char *value)
 {
 	if (!strcmp(var, "author.name")) {
diff --git a/ident.h b/ident.h
index 3c03403879..7e60e36415 100644
--- a/ident.h
+++ b/ident.h
@@ -60,7 +60,6 @@ const char *fmt_ident(const char *name, const char *email,
 const char *fmt_name(enum want_ident);
 
 int committer_ident_sufficiently_given(void);
-int author_ident_sufficiently_given(void);
 
 struct config_context;
 int git_ident_config(const char *, const char *, const struct config_context *,
-- 
2.56.0-486-gd49ba3b80a
Technical Details
Message-ID: <20261030173956.585250-2-gitster@pobox.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!git+bounces-73930-linux-kernel-git=dewy.ru
References: <20261030173956.585250-1-gitster@pobox.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!git+bounces-73930-linux-kernel-git=dewy.ru
From: gitster@pobox.com (Junio C Hamano)
Newsgroups: linux.kernel.git
Subject: [PATCH 1/4] ident: remove unused author_ident_sufficiently_given()
Date: Fri, 30 Oct 2026 10:39:53 -0700
Organization: Usenet Network
Message-ID: <20261030173956.585250-2-gitster@pobox.com>
References: <20261030173956.585250-1-gitster@pobox.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2286640"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:9eloii+G3c9NPusCPsHs2mphArg= sha256:0pfrTwUTpkjEphUVyXMH2zBlI4oFJsR2upSTBzeut5w=
	sha1:i+tIQbHJXoF27SonLbVfZLYbB7Y= sha256:zyKjrAyAGepYxR4wWOsgRh/EcUeKqvDFTojWHPfoHG4=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 761E4125CA1; Fri, 30 Oct 2026 20:45:55 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.949
X-Spam-Status: No, score=-1.949 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
	URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=pobox.com header.b=Oqkvyuo7; dkim=pass (2048-bit key)
	header.d=messagingengine.com header.b=c8EgR1gb
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id XE6LtTdyK2s9;
	Fri, 30 Oct 2026 20:45:51 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-73930-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=pobox.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 6F6A9125CA5; Fri, 30 Oct 2026 20:45:37 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id D9FE92CF8A; Fri, 30 Oct 2026 17:40:01 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793382001;
	b=Z5QhshYF2Q1kMxryDedSlIdxPEcS1eXNTwFRjrVM21SgEU3/D18CXmIZ1KzkVEliAF1G
	 gqbWpCdRWYV5B8+CgwWddKRJ0HWmN9m0AQzZ0bZHc0WEii77moGaIbkOmjyyuvohiJw8G
	 OuhSk4tri+D0TFmQgIdpe+WYBRugUICZR5iEDFT7dK+I8lmVvwPBZkGvoIg9ssNUOdYLJ
	 A2I0zYeSmPMYUApjEinqgcdB8Cn3eJsAQI+UKoR0omp3pDABygn46Dtbpz5Gv1I8ZPRJI
	 5iXmnDtZ8Vm4t1fA7rbGXTPVwO+mLtKBZqO6VKQ92UDNz+Et/yX+tMzx5PHK3JbcM2w==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793382001;
	h=X-Original-To:Received:DMARC-Filter:Received:Received:DKIM-Signature:
	 DKIM-Signature:X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:
	 Message-Instance:X-ME-Sender:X-ME-Received:X-ME-Proxy-Cause:
	 X-ME-Proxy:Feedback-ID:Received:From:To:Subject:Date:Message-ID:
	 X-Mailer:In-Reply-To:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Transfer-Encoding;
	bh=cKpbO2VwwIoYVStWl9l79rH59JkxaSQ4kTzGGUx2j2M=;
	b=JT684xFGJDDe3WIe6UrE2zgA8yX/7XB34joeFzBixHpvdiVwOS1hWFicZ+VIO4bx2+eG
	 H9nWpX+sMKu8Ki9ACPioGv/lewnTYZ7cne2TLNKzSBaIGqhXBq5/qHZh3dn6kirWZRRQO
	 RTtFBxQT1MFlJ9dKf3yEhSUIeeLKDxLazcErpDyDsAP5MBf15nmSj+k26pwCwVBrW91Ok
	 zfUQsijg+1ooYyoNkIY7xXFpaPKuS3CJrR4/8hWTLpmp7ela20N+OF5f+66UfMEZXOx0T
	 Sf5aq0D1n90udH2/36471eZRRh0IYQtgMM4/Q0xeKPikIRn8WBz81w9yNQnx4vLfkRg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=fm1 header.b=Oqkvyuo7;
	dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm2 header.b=c8EgR1gb;
	dmarc=pass header.from=pobox.com;
	spf=pass smtp.mailfrom=pobox.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id B1489606A31C;
	Fri, 30 Oct 2026 17:40:01 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=fm1 header.b=Oqkvyuo7;
	dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm2 header.b=c8EgR1gb
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=202.12.124.149
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793382000;
	b=gRB31LxRZ6+FKYxeHUV2apcn/4oiP39yDHOhH8cLqtMUPyEfdxPep4leXt2kXiXLZ8AD
	 DkGOmDefuN3y9lVfEB8kfHN653CFVMhfDhm1qQNSzH1rinHVfHn7OhBUHrVMcxgXhuprY
	 W9I/DMA2KQKQzTpz72tdu8L1r2A14CJZetaAuFs/Il6QUFVwrF+goGZp68xu7x0FRClTu
	 9TU2z7qi/M+zFuJFpwgSIVbPfi9YRLEZqJn8DEBmkLv7DnfbZiIsLCE8vVdfMlKEA4uGM
	 0H+qrodFMPADJCTViYyVBmmLbnBO8uPyCISG+lXgSQoQYh6jWojLTsrWVoj3vRZSRww==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793382000;
	h=DMARC-Filter:Received:Received:DKIM-Signature:DKIM-Signature:
	 X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:Message-Instance:
	 X-ME-Sender:X-ME-Received:X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID:
	 Received:From:To:Subject:Date:Message-ID:X-Mailer:In-Reply-To:
	 References:MIME-Version:Content-Transfer-Encoding;
	bh=cKpbO2VwwIoYVStWl9l79rH59JkxaSQ4kTzGGUx2j2M=;
	b=TA0UoF5bPGpaMICQaqqB/+yQpHKvY/BqVRW/rPzyjz+ats2+aJCjdVgrLyVADL1uGOmD
	 ZvUDHjSEiyH3Z9m3zJUSyovtXBNCQgzCFHx7jtK4wTAtrkiND9Vil08Binv/9//bxrAcb
	 SQ1KNV1KZsHgYXgDsr+h+BP6A9gqilwF6McMq4GVazxY1E7yjLQyDWp6KyxTz+J7NcUrO
	 bpMPfGIYlBRAd+nfzSlhIGfvKjuJxHNw/f27F5FMUc8g9iFYEBIBoNRM/fvFdQ9HPo75l
	 0QwJnJT00AF1OpQqGdAO7vKlcbBwPvDHhRcPtqBbf94J7xWml4msWvvtspzKtwrKyzg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=pobox.com;
	spf=pass smtp.mailfrom=pobox.com;
	dkim=pass header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=fm1 header.b=Oqkvyuo7;
	dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm2 header.b=c8EgR1gb;
	arc=none smtp.remote-ip=202.12.124.149
X-Received: from fout-b6-smtp.messagingengine.com (fout-b6-smtp.messagingengine.com [202.12.124.149])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E41B606A326
	for <git@vger.kernel.org>; Fri, 30 Oct 2026 17:40:00 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6E41B606A326
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pobox.com
X-Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41])
	by mailfout.stl.internal (Postfix) with ESMTP id 7F4641D0000F
	for <git@vger.kernel.org>; Fri, 30 Oct 2026 13:39:59 -0400 (EDT)
X-Received: from phl-frontend-01 ([10.202.2.160])
  by phl-compute-01.internal (MEProxy); Fri, 30 Oct 2026 13:39:59 -0400
X-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=fm1; t=1793381999; x=
	1793468399; bh=cKpbO2VwwIoYVStWl9l79rH59JkxaSQ4kTzGGUx2j2M=; b=O
	qkvyuo7hxtAdwonkgktnmmaGQybgx7mEMUr33aj/0H6DLeW5de0BqLNB7/qzzIX4
	B9tCCbAf2PUyslrJ3NC3MXmkOF6CZkaiMhhi9wUkhM2qUDg7MFmq4d8ozeODc4il
	akGZWcoSZGINsolChK4YUHEppRJ4+SurkuxnZDUXD/WTzgtVF/SxfUoW0LeQcryV
	wVwwU6GHqPWWqHGGcFwLwg7nwi8hOinrCkAnsnpWWBTF7LNjjXbD/Y9jP4e7xImG
	G/gdejo8l7eRKeelgh8tHM3PmiegLrRtcyObsIiNwgvaWazj+VPergtYKQ6J0M5R
	hrko8gLOZIUbs/dIUzUmA==
X-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=
	fm2; t=1793381999; x=1793468399; bh=cKpbO2VwwIoYVStWl9l79rH59Jkx
	aSQ4kTzGGUx2j2M=; b=c8EgR1gbqVx/i++TmHjPryrex85AwNwOmuLMlBAxIMtE
	GWJwxoGu6upMc7AABNjlToG8ZgjbIJ/WVvFvNyoeFjQid58D9BgyTy19MAEb+WJo
	yZyLobrUwRV4+sW8bGbhfY+z4H16d4gsPAjnnVXFsoiOGLpnN97FSzFfs6vecItD
	9tVK9LtyzojsaqVhQxRGfipSM2UEsGqMXX13rbMlxxeFunWLR1tpmvftOPbZcfeq
	lTKKeWCxdsspZhGTXTmv00Om03ciMNCS0O05bSjTs0MXg9rTiScErtcel6PiJIwN
	92AWHJByCsToY/5TkU0rFABpUZA2dYO8qlvQ1/HMrQ==
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-08;
	repo=github.com/dkim2wg/interop; date=2026-10-28; sw=lmtpprox;
	action=sign d=pobox.com a=rsa-sha256;
X-DKIM2-Signature: i=1; m=1; t=1793381999; d=pobox.com;
	mf=PGdpdHN0ZXJAcG9ib3guY29tPg==;
	rt=PGdpdEB2Z2VyLmtlcm5lbC5vcmc+;
	s=fm1:rsa-sha256:heFmdTJ5FshPYykFLl0+3s4ZweT6W1EqRrxQ52n8Pb3BD+4
	QZxilAXt8Se0dQJ8M420uj+w5aOtjBd74KrcBmwSVymgZ4tzEiJfzKtp/eS2wfEg
	xxSu3MNrKgEc2b/+rYbwRWwTQx7zDMCfuMFKyrnOg88YwyOM9RdrpQe1ruVT82Ux
	md3m39mrWsfKLHRD7nGnQyThQhnMQqiC1P0SdGRBl1sXxrwJNicnZAyOcmsIMPLP
	vxmaPx8bNBKQunAy3we3mMFY3SVxgWphmN8q4Gejr7i6LQ8Y/CMDjTAN77qJJNZB
	RgMrg6JtexHzmhh2MKByvIIQYsCKswumNftCjfA==;
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-08;
	repo=github.com/dkim2wg/interop; date=2026-10-28; sw=lmtpprox;
	action=mi-m=1; hc=10;
	hn=content-transfer-encoding,date,feedback-id,from,in-reply-to,
	message-id,mime-version,references,subject,to;
X-Message-Instance: m=1; h=sha256:qiqkhapRgjCtiNeAemzVaOQlmfKF4mRaOiVop7hXymQ=:R31KjEsyPhyG8Z1n+2yGe6j7dboG1skv6+wF+8pisnk=;
X-ME-Sender: <xms:b9bkaqpNBZGChv7_At024OMfs2TwCThRGzKW8WsdayqudHKOTIVHFg>
    <xme:b9bkaupsVGDrwhrzKirqwej_MiVFYnV6HgetJTKKOfiL6RajqaKrL-3IZHx-zZYFu
    jgOG5DYQ4xVLON1ReoHzU4AH7V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b9bkaspTuS1Ew3dqjmJh0zb1tQh9LRMWk22pyKSeA6AXHw6tK504CQ>
    <xmx:b9bkauB4dC4FSl06e2sEXH5OfKaATo3nmt-FtibGkCM7yg1S0lg1S1HA>
X-Feedback-ID: if26b431b:Fastmail
X-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri,
 30 Oct 2026 13:39:58 -0400 (EDT)
X-Mailer: git-send-email 2.56.0-486-gd49ba3b80a
X-In-Reply-To: <20261030173956.585250-1-gitster@pobox.com>
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list