Re: [PATCH] graph: use strbuf_addchars() to add spaces

2017-10-01 Thread Jeff King
On Sun, Oct 01, 2017 at 04:45:45PM +0200, René Scharfe wrote: > strbuf_addf() can be used to add a specific number of space characters > by using the format "%*s" with an empty string and specifying the > desired width. Use strbuf_addchars() instead as it's shorter, makes the > intent clearer and

[PATCH] graph: use strbuf_addchars() to add spaces

2017-10-01 Thread René Scharfe
strbuf_addf() can be used to add a specific number of space characters by using the format "%*s" with an empty string and specifying the desired width. Use strbuf_addchars() instead as it's shorter, makes the intent clearer and is a bit more efficient. Signed-off-by: Rene Scharfe --- graph.c |