summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLars Schneider <larsxschneider@gmail.com>2016-10-24 18:02:59 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-10-25 17:59:13 (GMT)
commita5436b57941d99302a4cf68373da6288c11f0340 (patch)
tree403364824786f8b322af37251027474b52eaa773 /builtin
parentdec040192fde87fb3249a3d53f802decd84fa7b7 (diff)
downloadgit-a5436b57941d99302a4cf68373da6288c11f0340.zip
git-a5436b57941d99302a4cf68373da6288c11f0340.tar.gz
git-a5436b57941d99302a4cf68373da6288c11f0340.tar.bz2
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 'builtin')
-rw-r--r--builtin/pack-objects.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c
index 1e7c2a9..0fd52bd 100644
--- a/builtin/pack-objects.c
+++ b/builtin/pack-objects.c
@@ -720,7 +720,7 @@ static off_t write_reused_pack(struct sha1file *f)
if (!is_pack_valid(reuse_packfile))
die("packfile is invalid: %s", reuse_packfile->pack_name);
- fd = git_open_noatime(reuse_packfile->pack_name);
+ fd = git_open(reuse_packfile->pack_name);
if (fd < 0)
die_errno("unable to open packfile for reuse: %s",
reuse_packfile->pack_name);