Class

GgitIndex

since: 1.0

Description [src]

final class Ggit.Index : Ggit.Native
  implements Gio.Initable {
  /* No available fields */
}

Represents an index object.

Available since: 1.0

Hierarchy

hierarchy this GgitIndex implements_0 GInitable this--implements_0 ancestor_0 GgitNative ancestor_0--this ancestor_1 GgitObjectFactoryBase ancestor_1--ancestor_0 ancestor_2 GObject ancestor_2--ancestor_1

Implements

Functions

ggit_index_open

Create a new bare Git index object as a memory representation of the Git index file in file, without a repository to back it.

since: 1.0

Instance methods

ggit_index_add

Add a file to the index.

since: 1.0

ggit_index_add_file

Add a file to the index. The specified file must be in the working directory and must exist and be readable.

since: 1.0

ggit_index_add_path

Add a file to the index by path. You can specify both relative paths (to the working directory) and absolute paths. Absolute paths however must reside in the working directory. The specified path must exist and must be readable.

since: 1.0

ggit_index_get_entries

Get the index entries enumerator.

since: 1.0

ggit_index_get_entries_resolve_undo

Get the resolve undo entries enumerator.

since: 1.0

ggit_index_get_owner

Get the GgitRepository that owns the index.

since: 1.0

ggit_index_has_conflicts

Get whether the index has any conflicts.

since: 1.0

ggit_index_read

Update the contents of an existing index object in memory by reading from the hard disk.

since: 1.0

ggit_index_remove

Remove a file from the index (specified by position).

since: 1.0

ggit_index_write

Write an existing index object from memory back to disk using an atomic file lock.

since: 1.0

ggit_index_write_tree

Write a new tree object to disk containing a representation of the current state of the index. The index must be associated to an existing repository and must not contain any files in conflict. You can use the resulting tree to for instance create a commit.

since: 1.0

ggit_index_write_tree_to

Write a new tree object to repository containing a representation of the current state of the index. The index must not contain any files in conflict. You can use the resulting tree to for instance create a commit.

since: 1.0

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Methods inherited from GInitable (1)
g_initable_init

Initializes the object implementing the interface.

unstable since: 2.22

Properties

Ggit.Index:file
No description available.

since: 1.0

Properties inherited from GgitNative (1)
Ggit.Native:native
No description available.

since: 1.0

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

unstable since: 2.0

Class structure

struct GgitIndexClass {
  GgitNativeClass parent_class;
  
}
No description available.
Class members
parent_class: GgitNativeClass
No description available.