From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fhigh-b2-smtp.messagingengine.com (fhigh-b2-smtp.messagingengine.com [202.12.124.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 E83EA372 for ; Sat, 16 Nov 2024 00:06:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.153 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731715604; cv=none; b=sKRdrmhMR3nv2+H/AwTCWmAD+sVtwpOsv6zcn0r/8GnhQojdduD8+hxRP4yv+0iJN9wmEH6U7aF2Z7TWcUYiGHWJcdxP7hv7UGqjAyqoM8RvpQ/YKaOYEP2tTL4UYQlIUxsR7qQDFcjTxCFRUlA3eOmXWVcAzMTCorE3V7h25XY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731715604; c=relaxed/simple; bh=/RWIM4WygK4zCJ1hnnfjhuXnf952fV4VgJG+5Eli6uk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=U6w8akDqu7jsERgVakwojpAozGyxc7Q/7vPpvLMs8geo70ChfNnROxTPDdIS4A1J75IYMVKXVLLRv/JrSnTPy0xWlLrpqRgRpNs1ergnokP6p1JWmBGyOjyIhPeJ7QtEKXQzANIVOvRq5RKoRLHbHRRK6HkWgwDFWZMugJ/CWKk= 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=messagingengine.com header.i=@messagingengine.com header.b=ELfejdFB; arc=none smtp.client-ip=202.12.124.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=messagingengine.com header.i=@messagingengine.com header.b="ELfejdFB" Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id C4CE92540193; Fri, 15 Nov 2024 19:06:40 -0500 (EST) Received: from phl-frontend-02 ([10.202.2.161]) by phl-compute-04.internal (MEProxy); Fri, 15 Nov 2024 19:06:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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=fm3; t=1731715600; x= 1731802000; bh=LnTS8JKSxcJz150fJWp3goMlfPmmuOf1y4msx4OwK2M=; b=E LfejdFBuJL5D/U9m0AZcJdneDz6IYrzefY/Lo6QDSrJQ+b/nJDRWpT4eHlUoaW1O ipshlIjP6f0/Oqy/IOgJgnO/ETDerh3uAuo5N+mTKXAiTnawt2q3sTeN6k8NLcYf c9y8+uukJU9uT83LIUWqhuGh2vpZF78eEdJQHBf8F6VsIYfob/uH/37CLIGkfwFN PSawcSbkzoNH8D2xQ063YV/noc4TqkizMHlg1r3HlN/+8kSCq2Hpu1Y/FzKxGC66 yk3rgB+H9O/z+a6rb9YyschCZLLnA7+7rujIcQzYHvTzSn1vmjyY45+7CPEdSE0h 0N9OgU4AbBra1bHDvhEVg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrvdehgddujecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefhvfevufgjfhffkfgfgggtgfesthekofdttderjeen ucfhrhhomheplfhunhhiohcuvecujfgrmhgrnhhouceoghhithhsthgvrhesphhosghogi drtghomheqnecuggftrfgrthhtvghrnhepkefgtdeuvdejfffgheeufeeugefhtdejhffg kefhhfetieffteehleehtdfghedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepghhithhsthgvrhesphhosghogidrtghomhdpnhgspghrtghp thhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepsggvnhgtvgesfhgvrh guihhnrghnugihrdgtohhmpdhrtghpthhtohepghhithesvhhgvghrrdhkvghrnhgvlhdr ohhrghdprhgtphhtthhopehgihhtshhtvghrsehpohgsohigrdgtohhm X-ME-Proxy: Feedback-ID: if26b431b:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 15 Nov 2024 19:06:40 -0500 (EST) From: Junio C Hamano To: "Bence Ferdinandy" Cc: Subject: Re: log --format existence of notes? In-Reply-To: (Bence Ferdinandy's message of "Fri, 15 Nov 2024 23:00:30 +0100") References: Date: Sat, 16 Nov 2024 09:06:38 +0900 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit "Bence Ferdinandy" writes: > based on the man pages it doesn't seem possible, but maybe I'm missing something. > > I would like to put together a "log --format=" which is similar to --oneline, > but where if there's a note for the commit it's marked with e.g. a notebook > symbol. There's %N, but that prints the entire note, so it doesn't work well > with one commit per line. I do not think it is doable. Unlike the format language in the for-each-ref/branch --list family of commands, the pretty-format language in the log family of commands lack more involved conditional formatting features. Unifying these two formatting languages to port features from one to the other would be needed, I guess. If we had a note support in the latter, something like $ git branch -l --format='%(subject)%(if)%(note:amlog)%(then)📓%(end)' may have worked.