OpenQuizz
Une application de gestion des contenus pédagogiques
git.index.util Namespace Reference

Data Structures

class  TemporaryFileSwap
 

Functions

def post_clear_cache (func)
 
def default_index (func)
 
def git_working_dir (func)
 

Variables

 pack
 
 unpack
 

Detailed Description

Module containing index utilities

Function Documentation

◆ default_index()

def git.index.util.default_index (   func)
Decorator assuring the wrapped method may only run if we are the default
repository index. This is as we rely on git commands that operate
on that index only. 

◆ git_working_dir()

def git.index.util.git_working_dir (   func)
Decorator which changes the current working dir to the one of the git
repository in order to assure relative paths are handled correctly

◆ post_clear_cache()

def git.index.util.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.

:note:
    This decorator will not be required once all functions are implemented
    natively which in fact is possible, but probably not feasible performance wise.

Variable Documentation

◆ pack

pack

◆ unpack

unpack