summaryrefslogtreecommitdiff
path: root/src/fileops.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2014-04-10 22:31:01 -0700
committerRussell Belfer <rb@github.com>2014-04-17 14:56:41 -0700
commit7d4908724fd7d4d8e096b4faf2c652ba5b77644e (patch)
tree2fcd09e7e040607c124f6e658c31f33e1aa1868a /src/fileops.c
parent1fa17b5c92cb92a2785fba403b87525169b205c0 (diff)
downloadlibgit2-7d4908724fd7d4d8e096b4faf2c652ba5b77644e.tar.gz
Attribute file cache refactor
This is a big refactoring of the attribute file cache to be a bit simpler which in turn makes it easier to enforce a lock around any updates to the cache so that it can be used in a threaded env. Tons of changes to the attributes and ignores code.
Diffstat (limited to 'src/fileops.c')
-rw-r--r--src/fileops.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/fileops.c b/src/fileops.c
index 5709499b0..d8d819151 100644
--- a/src/fileops.c
+++ b/src/fileops.c
@@ -804,10 +804,8 @@ int git_futils_filestamp_check(
if (stamp == NULL)
return 1;
- if (p_stat(path, &st) < 0) {
- giterr_set(GITERR_OS, "Could not stat '%s'", path);
+ if (p_stat(path, &st) < 0)
return GIT_ENOTFOUND;
- }
if (stamp->mtime == (git_time_t)st.st_mtime &&
stamp->size == (git_off_t)st.st_size &&