🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #1024

Re: [Outreachy] Microproject: use Q_() in builtin/checkout.c

#1024
From: Tuomas Ahola
Date: Wed, 21 Oct 2026 11:06
56 lines
11680 bytes
Muritala Mudi <ibnmuhyideen95@gmail.com> wrote:

> Hi Usman, Christian and Siddharth,
> 
> Thank you Usman for the welcome. I took some time to look into the
> microproject I want to work
> on and one that got my interest is the Q_() pluralization
> microproject. I will like to work on builtin/checkout.c.
> I searched the list archive and I didn't see anyone working on this file yet.
> 
> I noticed two places that can get improved with Q_():
> 
> Line 1088, " ... and %d more.\n": this is at the end of the warning
> Git shows when someone leaves
> a detached HEAD and so commits might be left behind.
> Git lists up to four commits and then shows this line for the rest.
> 
> Line 1492, "only one reference expected, %d given.": this appears when
> more than one
> reference is given before --, e.g. git checkout a b --.
> In both cases the number is always 2 or more, so in English the plural
> is always shown.
> But for languages like Polish, which have different plural forms for
> 2-4 and for 5 and above,
> it will be inconsistent to use the same form for all cases.
> 
> In po/pl.po, the first message currently has only one translation slot.
> So using Q_() can let have proper translation.
> 
> I noticed that line 1405 in builtin/checkout.c has the same issue.
> The same message also appears in builtin/worktree.c at lines 812 and 951.
> 
> So I have two questions:
> 
> 1. Is it OK to convert these messages to Q_(), even though English
> will always show the plural?

Yes, that would be very helpful.

> 2. Should I also include line 1405 in the patch, which will mean
> changing the same message in builtin/worktree.c
> as well, or should I keep the patch just limited to the first two
> messages for now

You can reply to [1], giving a review on the patch.  Perhaps you could even
nudge the author to take care of line 1492, too, whilst you can write and
submit patches for the other cases you had found.

That would be a nice exercise about how to coordinate contributions, wouldn't
it?

Thanks and welcome to Git!

Links:
  1. https://lore.kernel.org/git/20261021022156.119947-1-tangajoris@gmail.com/
Technical Details
Message-ID: <20261021110616.Wxkhc%taahol@utu.fi>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-72702-linux-kernel-git=dewy.ru
References: <CAO=0-S64w=n47n6yfYoKJie2aFi+T88Sp_qPmFe2RW0xWEwcdQ@mail.gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-72702-linux-kernel-git=dewy.ru
From: taahol@utu.fi (Tuomas Ahola)
Newsgroups: linux.kernel.git
Subject: Re: [Outreachy] Microproject: use Q_() in builtin/checkout.c
Date: Wed, 21 Oct 2026 14:06:16 +0300
Organization: Usenet Network
Message-ID: <20261021110616.Wxkhc%taahol@utu.fi>
References: <CAO=0-S64w=n47n6yfYoKJie2aFi+T88Sp_qPmFe2RW0xWEwcdQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: usenet.network;
	logging-data="4118011"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:cEumzfRRpUTVh5puiFsWNuuzLcw= sha256:mBVVbnbEv3V9YBCH+dZEWb39JNO5uMEdfvt5ZeVfssc=
	sha1:vuepqrAB9gUKgAkenILAf2tCSOw= sha256:BUBqp22IztrnJ0gAr61wuG/JFvtIEkZT+aT3O4LT8TU=
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 97870110FD9; Wed, 21 Oct 2026 14:09:15 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.948
X-Spam-Status: No, score=-1.948 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,
	UNPARSEABLE_RELAY=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=utu.fi
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 Q0ytd97dPkrx;
	Wed, 21 Oct 2026 14:09:12 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=git+bounces-72702-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=utu.fi
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 13E02110E22; Wed, 21 Oct 2026 14:09:03 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 7C0EB3E909; Wed, 21 Oct 2026 11:06:26 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail;
	t=1792580784;
	b=BjTf+Rrfc8OIgYOvTzXfzh9nlPvzv3m97x1LEEbqyzpYkrnTI5pysA3z97x6Gc/7GRU3
	 fK9K/f5wEcGv6FGRuzKXatABMk07LszSPJ/We7iL3eARFZNcqdTG5k6oyfPMdqlSydKGc
	 Wr0Yof28YdNh9ju5YiS3GxhNtvPhujq0aS9DG6oSi0j6pPK31EsdMRFShpShIy56HbGKg
	 JwsdqsvIlrzolLLOprlXjbxJNu3peObnjvJ0nAAVrlU/GAcoJ+IgQzVQDzZF9C+U5ASvH
	 UBj5nejjomzJG7EtopEmTHi31qa6JQ1UBXNElFskh89QIKPrz6tvVuMocNUjDiQjlnw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792580784;
	h=X-Original-To:Received:DMARC-Filter:Received:Received:Received:
	 Received:Date:From:To:CC:Subject:Message-ID:In-Reply-To:References:
	 User-Agent:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type:
	 X-ClientProxiedBy:X-FEAS-BEC-Info:X-FEAS-Client-IP:
	 X-FE-Last-Public-Client-IP:X-FE-Policy-ID:X-FE-Hostname:
	 DKIM-Signature;
	bh=5eu5BLfZYkWeRNeQ7hnZMkVv5gVQvh+B+6rCg38DW9I=;
	b=V3GhXaUvVIfxaXqD8sy/S0fbayvGKG+Y/QMJjWX/lDRzTakXDDWAeqCVQ1Vpuk1I7Ae9
	 oYoCtVV/nEZPwK1Nf0+fV6wCY54FrjCQdFBh/tcL18foIggbMgxtxUwDlW6qBvk+2Ao0h
	 HlOAhPce2NrBRdH7pTfGUq5Qk5THwYZBJVSKaUOz2jABVEdvwF3HeY+8cTQ8cCMqVj93m
	 Rga0HKUne31FeC2NExJi/wwIoc0bZiz2HtGf4ke+GUIR+cdMQ5GC3bhJdrA1YVBIbE/vg
	 L8xU5vbsbPk4hySV1juAGX6IAi9AVk0SZZf5kAakluZh3mO7/SKaXq81i3Il/bj3GEQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=utu.fi header.i=@utu.fi header.a=rsa-sha256 header.s=out-utu-v3 header.b="UIm/nTVH";
	dmarc=pass header.from=utu.fi;
	spf=pass smtp.mailfrom=utu.fi;
	arc=fail 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 5C286606A320;
	Wed, 21 Oct 2026 11:06:24 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=utu.fi header.i=@utu.fi header.a=rsa-sha256 header.s=out-utu-v3 header.b=UIm/nTVH
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=130.232.247.4
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1792580783;
	b=AgqLvkT8pbBROY03cWszeq2aKGICb00HGl1WVBeR0sKC9Zr7knaHYRhetxiZkbYk5RNk
	 /LEsaX9bXOVpNGZQk9kjSPxAldEulaoiCNpeRNT0CiJef5YZWIy6BYU7ncEbxSwo5sw2A
	 HJZs5FfnIRGYrpB1MlWlBwb6D0onZzowfcwvzrk3/tp23kW1fYEehpFapyjDTx+bSkDsk
	 x/F5MARuFMuaVlbFVUsOtGlA9wVkHUljS4pDrJlYd0DjgmoRWGRC4ZUc62vz45eMcLn86
	 BAtjuSdxwUat7azf90sD05IseXpM12NGbK0nbIEKm1UnubLQAhGOToBwNsnphkf5Vfw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792580783;
	h=DMARC-Filter:Received:Received:Received:Received:Date:From:To:CC:
	 Subject:Message-ID:In-Reply-To:References:User-Agent:MIME-Version:
	 Content-Type:X-Originating-IP:X-ClientProxiedBy:X-FEAS-BEC-Info:
	 X-FEAS-Client-IP:X-FE-Last-Public-Client-IP:X-FE-Policy-ID:
	 X-FE-Hostname:DKIM-Signature;
	bh=5eu5BLfZYkWeRNeQ7hnZMkVv5gVQvh+B+6rCg38DW9I=;
	b=RJ1fMn90/lGHunEvrh2CQKNB8y0UVQHW9FcRF+Dhl7HqeT9iOdYebIU02pibvG7biBzu
	 4CPNMUNQyVc4i+FiIKwsbkSWwgkSqGZQHa6rVzXkOs7wl3nh6ThPx99rejGAKvjEM3KkI
	 l19HUkvBQILeByWZXxcRZ0dxdBfE6Ypeg6g7Wphb+Sk+YQhDYAD6xXnzg++UXLwrqy0dz
	 fz83xOehW65oQv8SKMnZSaKWqy5SffwckOqBXGO83hnIw5kGZnIFQJysARqwiTJDvRZ4u
	 hBlAq4pbQI97vQBxa4gCTlaAhIC/w3gR5c8rwdOz+GDm82twDgHcVnYDrqSspxADYhw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=utu.fi;
	spf=pass smtp.mailfrom=utu.fi;
	dkim=pass header.d=utu.fi header.i=@utu.fi header.a=rsa-sha256 header.s=out-utu-v3 header.b="UIm/nTVH";
	arc=none smtp.remote-ip=130.232.247.4
X-Received: from fortymile.utu.fi (fortymile.utu.fi [130.232.247.4])
	(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 7FE2F606A319
	for <git@vger.kernel.org>; Wed, 21 Oct 2026 11:06:20 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7FE2F606A319
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=utu.fi
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=utu.fi
X-Received: from smtp-04.utu.fi (smtp-04.utu.fi [130.232.207.47])
	by fortymile.utu.fi  with ESMTPS id 69LB6GRi000773-69LB6GRk000773
	(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO);
	Wed, 21 Oct 2026 14:06:16 +0300
X-Received: from ex19-06.utu.fi ([130.232.247.46])
	by smtp-04.utu.fi with esmtps  (TLS1.2) tls TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
	(Exim 4.95)
	(envelope-from <taahol@utu.fi>)
	id 1xJU9A-001EBm-RC;
	Wed, 21 Oct 2026 14:06:16 +0300
X-Received: from localhost (86.50.95.90) by ex19-06.utu.fi (130.232.247.46) with
 Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.53; Wed, 21 Oct
 2026 14:06:16 +0300
X-Received: from localhost (localhost [local])
	by localhost (OpenSMTPD) with ESMTPA id 6433bb99;
	Wed, 21 Oct 2026 11:06:16 +0000 (UTC)
X-CC: <git@vger.kernel.org>, <christian.couder@gmail.com>, Siddharth Asthana
	<siddharthasthana31@gmail.com>, <usmanakinyemi202@gmail.com>
X-In-Reply-To: <CAO=0-S64w=n47n6yfYoKJie2aFi+T88Sp_qPmFe2RW0xWEwcdQ@mail.gmail.com>
X-User-Agent: s-nail v14.9.22
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
X-ClientProxiedBy: ex19-05.utu.fi (130.232.247.45) To ex19-06.utu.fi
 (130.232.247.46)
X-FEAS-BEC-Info: WlpIGw0aAQkEARIJHAEHBlJSCRoLAAEeDUhZUEhYSFhIWkhZXkguLT4lWFxYWFhYWFBeUVxfSFhISFlbSBwJCQAHBCgdHB1GDgFIWUhaXkgLABoBGxwBCQZGCwcdDA0a
 KA8FCQEERgsHBUhYSFpIWVxIWVtYRlpbWkZaWF9GXF9IUEhYSFhIWkhYSFhIWEhaXkgLABoBGxwBCQZGCwcdDA0aKA8FCQEERgsHBUhYSFlRSA8BHCgeDw0aRgMNGgYN
 BEYHGg9IWA==
X-FEAS-Client-IP: 130.232.207.47
X-FE-Last-Public-Client-IP: 130.232.207.47
X-FE-Policy-ID: 3:5:2:SYSTEM
X-FE-Hostname: fortymile.utu.fi
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; d=utu.fi; s=out-utu-v3; c=relaxed/relaxed;
 h=date:from:to:cc:subject:message-id:references:mime-version:content-type;
 bh=5eu5BLfZYkWeRNeQ7hnZMkVv5gVQvh+B+6rCg38DW9I=;
 b=UIm/nTVHerT9zeOVDWO8mUjwCs1dDKmIltYQ+HjtTH/WN1FKl7mviYK7Li48kwwkOaRd0v9KpXM1
	epdMfGj4KwoF6Ej+Iwac7o7N72FRdF2JYcI9t3+zXKcdR5Skk3qHnfBi8tPZT+fu42S2vbExBOkg
	Cpurei31Rr9s86aPYx3qtRtWxrhwA9UUT5vqApgilxNbSmkBZ5/NYlAqX1ksd7Mt6Lf+pfbTWQ25
	Ozx2yM1VyjKR9gih39u9CIJsIKsUcQUGbKkrcGxgVgsNWbFqEEkwxJNxv/RGjHOMuw9gDQnkKGlP
	PXC+R3/KBo/w2fzjtpJBbzFZ7M23vKtj617Osw==