From: Junio C Hamano Date: Sun, 07 Sep 2008 05:59:29 GMT Subject: Re: [PATCH] Builtin-commit: show on which branch a commit was added Message-ID: <7vd4jgpkce.fsf@gitster.siamese.dyndns.org> In-Reply-To: <7vzlmkpltb.fsf@gitster.siamese.dyndns.org> Junio C Hamano writes: > I somehow suspect it might be much simpler, more contained and robust if you: Ah, that would not work, sorry, because this if() statement is only about an uninteresting case of --allow-empty. You need to do this the hard way and teach get_commit_format_string() quote % characters in branch names.