From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fout-b1-smtp.messagingengine.com (fout-b1-smtp.messagingengine.com [202.12.124.144]) (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 E53B930B50A for ; Tue, 6 Jan 2026 09:58:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.144 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767693523; cv=none; b=k7LRPtUQZxCX26vNRjenRgMq+6fjpdfdjOzFjXBadhkOxBgdyLyFkdDQpi+0YdGv3uCcIF/jdctPW0BRdg85M33xLNJZbB5AczQfAWNJsyj8QVdgyNG5wbKMxS8yMLXTvE9O7YuKXloACvhZt9ras9pe/nvWn0ZZ+8Lvt1lxLmo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767693523; c=relaxed/simple; bh=oKS0k2RRq4FZoevLbpnW0hPJVqwofgado9pl3SZ+T8I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kfeJkfJhZOaypwbvifF5TEZKV6icHHVh8viwYG7EvYS/vrwOQ9JPRjW3hgLiHywGsRVQpaSAF5vpaFgctwJ2puuJy9DXMSw96gkvfqiIqHGcQceMxsNIGszIp4QRGtoB+ab5hXyvIyc7tn8V/wFi5RYCsb9U7gaL1CKNO6CK17A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=pks.im; spf=pass smtp.mailfrom=pks.im; dkim=pass (2048-bit key) header.d=pks.im header.i=@pks.im header.b=jiMamJt1; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=ME0aVQJQ; arc=none smtp.client-ip=202.12.124.144 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=pks.im Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pks.im Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pks.im header.i=@pks.im header.b="jiMamJt1"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="ME0aVQJQ" Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfout.stl.internal (Postfix) with ESMTP id E7A601D00064; Tue, 6 Jan 2026 04:58:39 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Tue, 06 Jan 2026 04:58:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pks.im; h=cc:cc :content-type: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=1767693519; x=1767779919; bh=EqmRjNPVVy GgNIE/tRCyLY5kDZIqtkb0cPvOyiLXMbs=; b=jiMamJt1N9pn6KsfeLamxZOG5q 1n5z3Dko9vHLdYu+of3sPK+VCzkXxBweEnlbidGoukXA4fi+7rDW8QsJtidNXpEa hogIC7Q+sS9h8eWkngi+Jyh127U+NrIAGU1NqRTt9qfGhouoTJ23VSK0mvixEsAM /wdtPUNKVavqrPg1HS8dT0QHryRLUVmxPYvqyDAEkXDuPZrQMNbnFcrOXxJOxuT3 xNAlfvASyOtx/2yzg2sBtGQ7biiuTdWM600TB1Kkjnz2kZB1Rb2/pgqah4P3S2Xw G163d50igDVDguFcCALyYowootjlCgzvUnnaLM9DFqv641UmnmGROxqizxVQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type: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= 1767693519; x=1767779919; bh=EqmRjNPVVyGgNIE/tRCyLY5kDZIqtkb0cPv OyiLXMbs=; b=ME0aVQJQID1b8MR3uVuMUd9D5dK6+Nwzm67LukaSMygT/4BIoqP o6N06Ti1BvuBUK00sgSe54KIbMXJTqcicOkNXqJ2lbcosYrYyoIiFnsx+4DC8eZu w202piZqc6wd/aDvGV9e6OFpanR7QrtYlaQve5/ShUwBGI3BNYRNLqDQm8WlWlOD lvBkacvpmfGY7O/r6UAj1f0iYHEHI+lj+EI9kRsn/s1wNmsSWBimbqawhKec4KUw klGGXfDComZqDoo6JwLkPbBLqqttbvqAmmXRiR3CegoFEOy/S532X5BFw5vsYiGH odgNWkBDwDIs0pV5dgyUa1b01feAXi3tjEw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdelleeklecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefrrghtrhhitghk ucfuthgvihhnhhgrrhguthcuoehpshesphhkshdrihhmqeenucggtffrrghtthgvrhhnpe dvfeeludekgeegieekjeehlefglefgvdevieevjedvtdegkefhjefhieetfeduudenucff ohhmrghinheptghouggvsggvrhhgrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepphhssehpkhhsrdhimhdpnhgspghrtghpthhtohep gedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepghhushhtvggusegtohguvggsvg hrghdrohhrghdprhgtphhtthhopehgihhtshhtvghrsehpohgsohigrdgtohhmpdhrtghp thhtohepghhithesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehtohhonh esihhothgtlhdrtghomh X-ME-Proxy: Feedback-ID: i197146af:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 6 Jan 2026 04:58:38 -0500 (EST) Received: by mail (OpenSMTPD) with ESMTPSA id be8fc92f (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 6 Jan 2026 09:58:36 +0000 (UTC) Date: Tue, 6 Jan 2026 10:58:33 +0100 From: Patrick Steinhardt To: Gusted Cc: git@vger.kernel.org, Toon Claes , Junio C Hamano Subject: Re: git-last-modified on bare repository Message-ID: References: <09870987-ae2f-44ec-b8a0-1654f598b5fd@codeberg.org> <8e6dd4d7-6e0a-477a-b10c-8571d6b7da4c@codeberg.org> Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Jan 06, 2026 at 10:42:55AM +0100, Gusted wrote: > On 1/5/26 4:17 PM, Patrick Steinhardt wrote: > > On Mon, Jan 05, 2026 at 04:06:39PM +0100, Gusted wrote: > > > On 1/5/26 4:03 PM, Patrick Steinhardt wrote: > > > > On Mon, Jan 05, 2026 at 02:35:56PM +0100, Gusted wrote: > > > > > Hi, > > > > > > > > > > Now trying to actually make Forgejo use git last-modified after being > > > > > pointed to the non-yet-documented options but I quickly noticed that it > > > > > looks like it does not work as intended on bare repositories when looking > > > > > specifying files. > > > > > > > > > > $ git clone https://codeberg.org/Gusted/math-accuracy > > > > > $ cd math-accuracy > > > > > $ git last-modified -- LICENSES > > > > > 768f05837e7db2832425bc3b65d0f524e81b2769 LICENSES > > > > > > > > > > And on a bare repository: > > > > > > > > > > $ git clone --bare https://codeberg.org/Gusted/math-accuracy > > > > > $ cd math-accuracy.git > > > > > $ git last-modified -- LICENSE > > > > > fatal: ambiguous argument 'LICENSE': unknown revision or path not in the > > > > > working tree. > > > > > Use '--' to separate paths from revisions, like this: > > > > > 'git [...] -- [...]' > > > > > > > > > > Is a worktree required for this to work? > > > > > > > > A worktree is not required for this to work. The problem is that you've > > > > got a typo in there: you say "LICENSE", but the actual file is called > > > > "LICENSES". If you spell it correctly it should work alright. > > > > > > > > > > Ah, sorry the typo is on me from copying the wrong command from the shell > > > history. It produces the same output with using LICENSES as path. > > > > > > $ git last-modified -- LICENSES > > > fatal: ambiguous argument 'LICENSES': unknown revision or path not in the > > > working tree. > > > Use '--' to separate paths from revisions, like this: > > > 'git [...] -- [...]' > > > > Hm, interesting, this works for me in a bare repository. Has this > > already been fixed...? Indeed, bisecting this points to 05491b90ce > > (last-modified: support sparse checkouts, 2025-11-29). So you should > > probably try with Git's "master" branch. > > > > Patrick > > Yup, git from source works! Do you by any chance know if 05491b90ce is going > to be in v2.52.1? No idea, point releases are typically done rather ad-hoc. Let me Cc Junio though so that he's aware that we might want to pick this if we ever release v2.52.1. Patrick