summaryrefslogtreecommitdiff
path: root/lib/git/index/util.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-06-21 15:45:29 +0200
committerSebastian Thiel <byronimo@gmail.com>2010-06-21 15:45:29 +0200
commit0fdf6c3aaff49494c47aaeb0caa04b3016e10a26 (patch)
treec41a4e8ff22a1d654ca26558ba5da097e080fb5b /lib/git/index/util.py
parentac62760c52abf28d1fd863f0c0dd48bc4a23d223 (diff)
downloadgitpython-0fdf6c3aaff49494c47aaeb0caa04b3016e10a26.tar.gz
index: Entries are now using flags internally, instead of reducing the flag information to just the stage ( just to be closer to the git-original )
Diffstat (limited to 'lib/git/index/util.py')
-rw-r--r--lib/git/index/util.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/git/index/util.py b/lib/git/index/util.py
index cf09b095..c9fb1922 100644
--- a/lib/git/index/util.py
+++ b/lib/git/index/util.py
@@ -3,7 +3,7 @@ import struct
import tempfile
import os
-__all__ = ( 'TemporaryFileSwap', 'clear_cache', 'default_index' )
+__all__ = ( 'TemporaryFileSwap', 'post_clear_cache', 'default_index' )
#{ Aliases
pack = struct.pack
@@ -36,7 +36,7 @@ class TemporaryFileSwap(object):
#{ Decorators
-def clear_cache(func):
+def post_clear_cache(func):
"""Decorator for functions that alter the index using the git command. This would
invalidate our possibly existing entries dictionary which is why it must be
deleted to allow it to be lazily reread later.
@@ -45,14 +45,14 @@ def clear_cache(func):
This decorator will not be required once all functions are implemented
natively which in fact is possible, but probably not feasible performance wise.
"""
- def clear_cache_if_not_raised(self, *args, **kwargs):
+ def post_clear_cache_if_not_raised(self, *args, **kwargs):
rval = func(self, *args, **kwargs)
self._delete_entries_cache()
return rval
# END wrapper method
- clear_cache_if_not_raised.__name__ = func.__name__
- return clear_cache_if_not_raised
+ post_clear_cache_if_not_raised.__name__ = func.__name__
+ return post_clear_cache_if_not_raised
def default_index(func):
"""Decorator assuring the wrapped method may only run if we are the default