diff options
author | Lars Schneider <larsxschneider@gmail.com> | 2016-10-24 20:02:59 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-10-25 10:59:13 -0700 |
commit | a5436b57941d99302a4cf68373da6288c11f0340 (patch) | |
tree | 403364824786f8b322af37251027474b52eaa773 /cache.h | |
parent | dec040192fde87fb3249a3d53f802decd84fa7b7 (diff) | |
download | git-a5436b57941d99302a4cf68373da6288c11f0340.tar.gz git-a5436b57941d99302a4cf68373da6288c11f0340.tar.xz |
sha1_file: rename git_open_noatime() to git_open()
This function is meant to be used when reading from files in the
object store, and the original objective was to avoid smudging atime
of loose object files too often, hence its name. Because we'll be
extending its role in the next commit to also arrange the file
descriptors they return auto-closed in the child processes, rename
it to lose "noatime" part that is too specific.
Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1122,7 +1122,7 @@ extern int write_sha1_file(const void *buf, unsigned long len, const char *type, extern int hash_sha1_file_literally(const void *buf, unsigned long len, const char *type, unsigned char *sha1, unsigned flags); extern int pretend_sha1_file(void *, unsigned long, enum object_type, unsigned char *); extern int force_object_loose(const unsigned char *sha1, time_t mtime); -extern int git_open_noatime(const char *name); +extern int git_open(const char *name); extern void *map_sha1_file(const unsigned char *sha1, unsigned long *size); extern int unpack_sha1_header(git_zstream *stream, unsigned char *map, unsigned long mapsize, void *buffer, unsigned long bufsiz); extern int parse_sha1_header(const char *hdr, unsigned long *sizep); |