sha1_file: add a "read_sha1_file_repl" function
commitf5552aee39d664bb8774c205341abd6db74b38d3
authorChristian Couder <chriscool@tuxfamily.org>
Fri, 23 Jan 2009 09:07:01 +0000 (23 10:07 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Jun 2009 00:02:59 +0000 (31 17:02 -0700)
tree858b9d76d47bb068cdd709baee81b1ff9ae3ec3f
parent680955702990c1d4bfb3c6feed6ae9c6cb5c3c07
sha1_file: add a "read_sha1_file_repl" function

This new function will replace "read_sha1_file". This latter function
becoming just a stub to call the former will a NULL "replacement"
argument.

This new function is needed because sometimes we need to use the
replacement sha1.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
sha1_file.c