summaryrefslogtreecommitdiff
path: root/src/fileops.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-05-10 11:08:59 -0700
committerRussell Belfer <rb@github.com>2012-05-10 11:12:43 -0700
commitdc13f1f7d71a22d6618c9a5db18335c005da9795 (patch)
tree83e03271144ce6779644f51021c6b5a7853798a0 /src/fileops.c
parentfb49bdf9c7837892154bf7efdb3db6c3ec63e396 (diff)
downloadlibgit2-dc13f1f7d71a22d6618c9a5db18335c005da9795.tar.gz
Add cache busting to attribute cache
This makes the git attributes and git ignores cache check stat information before using the file contents from the cache. For cached files from the index, it checks the SHA of the file instead. This should reduce the need to ever call `git_attr_cache_flush()` in most situations. This commit also fixes the `git_status_should_ignore` API to use the libgit2 standard parameter ordering.
Diffstat (limited to 'src/fileops.c')
-rw-r--r--src/fileops.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/fileops.c b/src/fileops.c
index bf95f769c..6b9d78381 100644
--- a/src/fileops.c
+++ b/src/fileops.c
@@ -185,9 +185,6 @@ int git_futils_readbuffer_updated(git_buf *buf, const char *path, time_t *mtime,
p_close(fd);
- if (mtime != NULL)
- *mtime = st.st_mtime;
-
if (updated != NULL)
*updated = 1;