From: Junio C Hamano Date: Thu, 26 Jan 2023 21:07:02 GMT Subject: Re: [PATCH v4 0/1] ref-filter: add new "signature" atom Message-ID: In-Reply-To: <20230116173814.11338-1-nsengiyumvawilberforce@gmail.com> Nsengiyumva Wilberforce writes: > iv) I also moved check_commit_signature(commit, &sigc) out of the > to avoid running GPG twice.still this change is in grab_signature() > in ref-filter.c. Is there some code to avoid calling check_commit_signature() or grab_signature() itself when no %(signature) atoms is used? When nobody asked to use signature atom at all, calling GPG once is already once too many. Thanks.