]> git.ipfire.org Git - thirdparty/git.git/commit - walker.c
walker: let walker_say take arbitrary formats
authorJeff King <peff@peff.net>
Fri, 8 Jul 2016 09:25:23 +0000 (05:25 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Jul 2016 17:11:23 +0000 (10:11 -0700)
commitfa262cac766d383c51e0ead04c62e114a79bd738
tree2f70b803554a41d5eee0e2b5ee4f7bcd846e591e
parent5c589a73de4394ad125a4effac227b3aec856fa1
walker: let walker_say take arbitrary formats

We take a printf-style format and a single "char *"
parameter, and the format must therefore have at most one
"%s" in it. Besides being error-prone (and tickling
-Wformat-nonliteral), this is unnecessarily restrictive. We
can just provide the usual varargs interface.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
walker.c
walker.h