Re: [PATCH] strbuf: use strbuf_addstr() for adding C strings

2014-07-16 Thread Jonathan Nieder
René Scharfe wrote: > Avoid code duplication and let strbuf_addstr() call strlen() for us. Nice. > Signed-off-by: Rene Scharfe > --- > builtin/commit.c | 2 +- > diff.c | 12 ++-- > path.c | 6 +++--- > 3 files changed, 10 insertions(+), 10 deletions(-) Reviewed-

[PATCH] strbuf: use strbuf_addstr() for adding C strings

2014-07-16 Thread René Scharfe
Avoid code duplication and let strbuf_addstr() call strlen() for us. Signed-off-by: Rene Scharfe --- builtin/commit.c | 2 +- diff.c | 12 ++-- path.c | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/builtin/commit.c b/builtin/commit.c in