sha1_file: export git_open_noatime
The `git_open_noatime` helper can be of general interest for other consumers of git's different on-disk formats. Signed-off-by: Vicent Marti <tanoku@gmail.com> Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
a330de31d1
commit
ec73f5807c
@ -239,8 +239,6 @@ char *sha1_pack_index_name(const unsigned char *sha1)
|
||||
struct alternate_object_database *alt_odb_list;
|
||||
static struct alternate_object_database **alt_odb_tail;
|
||||
|
||||
static int git_open_noatime(const char *name);
|
||||
|
||||
/*
|
||||
* Prepare alternate object database registry.
|
||||
*
|
||||
@ -1357,7 +1355,7 @@ int check_sha1_signature(const unsigned char *sha1, void *map,
|
||||
return hashcmp(sha1, real_sha1) ? -1 : 0;
|
||||
}
|
||||
|
||||
static int git_open_noatime(const char *name)
|
||||
int git_open_noatime(const char *name)
|
||||
{
|
||||
static int sha1_file_open_flag = O_NOATIME;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user