Re: [PATCH] strbuf: use strbuf_addstr() for adding C strings
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Jul 16, 2014, 23:41 UTC
- Message-ID
- <20140716234151.GN12427@google.com>
- In-Reply-To
- <53C70CEA.8000000@web.de>
René Scharfe wrote:
> Avoid code duplication and let strbuf_addstr() call strlen() for us.
Nice.
Show 6 quoted lines
> Signed-off-by: Rene Scharfe <l.s.r@web.de> > --- > builtin/commit.c | 2 +- > diff.c | 12 ++++++------ > path.c | 6 +++--- > 3 files changed, 10 insertions(+), 10 deletions(-)
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>