builtin/prune.c: use strbuf to avoid having to worry about PATH_MAX
commit4454e9cb5994467fb1a6b60b3b2637fd4ff76ac0
authorJeff King <peff@peff.net>
Tue, 17 Dec 2013 23:22:31 +0000 (17 18:22 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Dec 2013 23:53:56 +0000 (18 15:53 -0800)
tree0ac7c0d03961deb3caee364bb680de7360e2b62e
parentc235d960cb32ddca352d12c3f8dc053ddfd421dd
builtin/prune.c: use strbuf to avoid having to worry about PATH_MAX

While at it, rename prune_tmp_object(), which used to be a helper to
remove temporary files that were created to become loose object
files, to prune_tmp_file(), as the function is also used to remove
any random cruft whose name begins with tmp_ directly in .git/object
or .git/object/pack directories these days.

Noticed-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/prune.c