code: def post_clear_cache(func):
      
  
      @wraps(func)
      def post_clear_cache_if_not_raised(self, *args, **kwargs):
          rval = func(self, *args, **kwargs)
          self._delete_entries_cache()
          return rval
      # END wrapper method
  
      return post_clear_cache_if_not_raised
docs: 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.
  
      :note:
          This decorator will not be required once all functions are implemented
          natively which in fact is possible, but probably not feasible performance wise.