diff options
author | Carlos Martín Nieto <cmn@elego.de> | 2011-07-26 16:58:32 +0400 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-09-27 16:33:18 +0400 |
commit | 69bffab9693983378409d2bdd3266ba8540b3236 (patch) | |
tree | 7f798fa843dfd196399e9b35f3b7d84eb6e69be0 /src/tree-cache.h | |
parent | acd31b4ad6b3bb3e3048fe3b4d7005b9a4a770e5 (diff) |
Add git_tree_cache_invalidate_path
Whenever a file is updated in the index, each tree leading towards it
needs to be invalidated. Provide the supporting function.
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Diffstat (limited to 'src/tree-cache.h')
-rw-r--r-- | src/tree-cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tree-cache.h b/src/tree-cache.h index 1a5d40613..450b03803 100644 --- a/src/tree-cache.h +++ b/src/tree-cache.h @@ -24,6 +24,7 @@ struct git_tree_cache { typedef struct git_tree_cache git_tree_cache; int git_tree_cache_read(git_tree_cache **tree, const char *buffer, size_t buffer_size); +void git_tree_cache_invalidate_path(git_tree_cache *tree, const char *path); void git_tree_cache_free(git_tree_cache *tree); #endif |