Ggit.IndexEntriesResolveUndo

Fields

None

Methods

get (idx)

get_by_file (file)

ref ()

size ()

unref ()

Details

class Ggit.IndexEntriesResolveUndo

Represents the resolve undo entries in an index object.

get(idx)
Parameters:

idx (int) – the index of the entry.

Returns:

a Ggit.IndexEntryResolveUndo or None.

Return type:

Ggit.IndexEntryResolveUndo or None

Get a Ggit.IndexEntryResolveUndo by index. Note that the returned Ggit.IndexEntryResolveUndo is _only_ valid as long as:

  1. The associated index has been closed

  2. The entry has not been removed (see Ggit.Index.remove())

  3. The index has not been refreshed (see Ggit.Index.read())

get_by_file(file)
Parameters:

file (Gio.File) – a Gio.File.

Returns:

a Ggit.IndexEntryResolveUndo or None.

Return type:

Ggit.IndexEntryResolveUndo or None

Get an resolve_undo entry specified by path. The returned entry is read only and should not be modified by the caller. If the entry could not be found, None is returned.

ref()
Returns:

a Ggit.IndexEntriesResolveUndo or None.

Return type:

Ggit.IndexEntriesResolveUndo or None

Atomically increments the reference count of self by one. This function is MT-safe and may be called from any thread.

size()
Returns:

the number of entries.

Return type:

int

Get the number of Ggit.IndexEntryResolveUndo entries.

unref()

Atomically decrements the reference count of self by one. If the reference count drops to 0, self is freed.