class documentation

class locked_index:

Constructor: locked_index(path)

View In Hierarchy

Lock the index while making modifications.

Works as a context manager.

Method __enter__ Enter context manager and lock index.
Method __exit__ Exit context manager and unlock index.
Method __init__ Initialize locked_index.
Instance Variable _file Undocumented
Instance Variable _index Undocumented
Instance Variable _path Undocumented
def __enter__(self) -> Index:

Enter context manager and lock index.

def __exit__(self, exc_type: type | None, exc_value: BaseException | None, traceback: types.TracebackType | None):

Exit context manager and unlock index.

def __init__(self, path: bytes | str):

Initialize locked_index.

_file: _GitFile =

Undocumented

_index =

Undocumented

_path =

Undocumented