]> git.proxmox.com Git - libgit2.git/commit - src/libgit2/attrcache.h
Fix broken logic for attr cache invalidation
authorRussell Belfer <rb@github.com>
Thu, 17 Apr 2014 18:53:13 +0000 (11:53 -0700)
committerRussell Belfer <rb@github.com>
Thu, 17 Apr 2014 22:04:41 +0000 (15:04 -0700)
commit823c0e9cc142529912976f2e6abff3db456cb204
treec07051b17bfcff2ef3edc24da05a8bb5ed6616e1
parente6e8530aa6c8773dd523fd6fe07629b9481a8fee
Fix broken logic for attr cache invalidation

The checks to see if files were out of date in the attibute cache
was wrong because the cache-breaker data wasn't getting stored
correctly.  Additionally, when the cache-breaker triggered, the
old file data was being leaked.
13 files changed:
CMakeLists.txt
src/attr.c
src/attr_file.c
src/attr_file.h
src/attrcache.c
src/attrcache.h
src/fileops.c
src/fileops.h
src/ignore.c
tests/attr/file.c
tests/attr/lookup.c
tests/attr/repo.c
tests/status/ignore.c