sha1_file: remove static strbuf from sha1_file_name()
authorChristian Couder <christian.couder@gmail.com>
Wed, 17 Jan 2018 17:54:54 +0000 (18:54 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Jan 2018 20:21:32 +0000 (12:21 -0800)
commitea6577303f4059683f8f257bdecbcafb05001ce9
tree1ac60041f78ab7af5f557bc8b2028b73994bfa52
parent3013dff8662eae06457fe6e5348dfe2270810ab2
sha1_file: remove static strbuf from sha1_file_name()

Using a static buffer in sha1_file_name() is error prone
and the performance improvements it gives are not needed
in many of the callers.

So let's get rid of this static buffer and, if necessary
or helpful, let's use one in the caller.

Suggested-by: Jeff Hostetler <git@jeffhostetler.com>
Helped-by: Kevin Daudt <me@ikke.info>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
http-walker.c
http.c
sha1_file.c