diff options
author | Christian Couder <christian.couder@gmail.com> | 2017-02-27 18:00:11 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-01 21:24:22 (GMT) |
commit | 6a5e6f5e4496d5647e9b11352d055efed434029e (patch) | |
tree | 6840f8b909acd0b640307942fc2f4bf2fd106f4d /sha1_file.c | |
parent | e77cf4ee6597953b21454b77eee9666ad0e0063b (diff) | |
download | git-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 'sha1_file.c')
-rw-r--r-- | sha1_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1_file.c b/sha1_file.c index 1173071..f5303d9 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -601,7 +601,7 @@ static int freshen_file(const char *fn) * either does not exist on disk, or has a stale mtime and may be subject to * pruning). */ -static int check_and_freshen_file(const char *fn, int freshen) +int check_and_freshen_file(const char *fn, int freshen) { if (access(fn, F_OK)) return 0; |