rm: reuse strbuf for all remove_dir_recursively() calls
commitdeb8e15a19790b2c526b599620407d2f5c1cefcb
authorRené Scharfe <l.s.r@web.de>
Sat, 9 Jul 2016 14:47:04 +0000 (9 16:47 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Jul 2016 22:09:21 +0000 (12 15:09 -0700)
tree4e331b5944ef17d8f125d18eceb02496b1a2afff
parent50b4a7807f5f1db79a0a4f4400c29bc00efbd307
rm: reuse strbuf for all remove_dir_recursively() calls

Don't throw the memory allocated for remove_dir_recursively() away after
a single call, use it for the other entries as well instead.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rm.c