summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2017-02-27 18:00:11 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-03-01 21:24:22 (GMT)
commit6a5e6f5e4496d5647e9b11352d055efed434029e (patch)
tree6840f8b909acd0b640307942fc2f4bf2fd106f4d /cache.h
parente77cf4ee6597953b21454b77eee9666ad0e0063b (diff)
downloadgit-6a5e6f5e4496d5647e9b11352d055efed434029e.zip
git-6a5e6f5e4496d5647e9b11352d055efed434029e.tar.gz
git-6a5e6f5e4496d5647e9b11352d055efed434029e.tar.bz2
sha1_file: make check_and_freshen_file() non static
This function will be used in a commit soon, so let's make it available globally. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index e15b421..f442f281 100644
--- a/cache.h
+++ b/cache.h
@@ -1170,6 +1170,9 @@ extern int has_pack_index(const unsigned char *sha1);
extern void assert_sha1_type(const unsigned char *sha1, enum object_type expect);
+/* Helper to check and "touch" a file */
+extern int check_and_freshen_file(const char *fn, int freshen);
+
extern const signed char hexval_table[256];
static inline unsigned int hexval(unsigned char c)
{