sha1_file_name(): declare to return a const string
commit30d6c6eabfefed330bebbed9126fe21bf349fd6b
authorMichael Haggerty <mhagger@alum.mit.edu>
Fri, 21 Feb 2014 16:32:05 +0000 (21 17:32 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Feb 2014 17:10:22 +0000 (24 09:10 -0800)
tree8337fc42c2ccc86b47582f75478a92a7fc1a0844
parent1b1005d1b5da02483a9d275f5df522d4d298cc36
sha1_file_name(): declare to return a const string

Change the return value of sha1_file_name() to (const char *).
(Callers have no business mucking about here.)  Change callers
accordingly, deleting a few superfluous temporary variables along the
way.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
http.c
sha1_file.c