From: Junio C Hamano Date: Mon, 23 Jan 2023 22:39:13 GMT Subject: Re: [PATCH v2 2/2] ls-files: add %(skipworktree) atom to format option Message-ID: In-Reply-To: ZheNing Hu writes: >> Perhaps it becomes useful in conjunction with %(if) and friends, >> when they become avaiable? >> ... > Can this strange design be considered as a bad design of %(if) and > %(else) in ref-filter? Sorry, but I am not sure what "strange design" you are referring to. On the ref-filter side, thanks to these conditional formatting primitives, a boolean %(token) that gives an empty string vs a non-empty string does make sense for a good design. If another --format="" wants to imitate it, it would be a good idea to first see what part of the implementation can be shared and reused from there.