Ggit.IndexEntry¶
Fields¶
None
Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Ggit.IndexEntry¶
Represents an index entry object.
- get_flags_extended()¶
- Returns:
the extended flags.
- Return type:
Get the extended flags of the index entry.
- is_conflict()¶
-
Get whether the entry represents a conflict.
- ref()¶
- Returns:
a
Ggit.IndexEntry
orNone
.- Return type:
Atomically increments the reference count of self by one. This function is MT-safe and may be called from any thread.
- set_commit(commit)¶
- Parameters:
commit (
Ggit.Commit
) – aGgit.Commit
.
Set the index entry to point to a given commit. This sets the index entry id to the commit id, changes the mode to
Ggit.FileMode.COMMIT
and updates the timestamps to when the commit was made.
- set_file_size(file_size)¶
- Parameters:
file_size (
int
) – the file size.
Set the file size of the index entry.
- set_flags_extended(flags_extended)¶
- Parameters:
flags_extended (
int
) – the extended flags.
Set the extended flags of the index entry.
- set_path(path)¶
-
Set the path of the index entry. The path should be relative to the working directory.
- stat(file)¶
- Parameters:
file (
Gio.File
) – the file to stat.- Raises:
- Returns:
True
if the entry was filled from statting file successfully,False
otherwise.- Return type:
Fill the entry fields from statting file.
- unref()¶
Atomically decrements the reference count of self by one. If the reference count drops to 0, self is freed.