![]() |
![]() |
![]() |
libgit2-glib Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
GgitDiffDelta; enum GgitDeltaType; GgitDiffDelta * ggit_diff_delta_ref (GgitDiffDelta *delta
); void ggit_diff_delta_unref (GgitDiffDelta *delta
); GgitDiffFile * ggit_diff_delta_get_old_file (GgitDiffDelta *delta
); GgitDiffFile * ggit_diff_delta_get_new_file (GgitDiffDelta *delta
); GgitDeltaType ggit_diff_delta_get_status (GgitDiffDelta *delta
); guint ggit_diff_delta_get_similarity (GgitDiffDelta *delta
); GgitDiffFlag ggit_diff_delta_get_flags (GgitDiffDelta *delta
);
typedef enum { GGIT_DELTA_UNMODIFIED = 0, GGIT_DELTA_ADDED = 1, GGIT_DELTA_DELETED = 2, GGIT_DELTA_MODIFIED = 3, GGIT_DELTA_RENAMED = 4, GGIT_DELTA_COPIED = 5, GGIT_DELTA_IGNORED = 6, GGIT_DELTA_UNTRACKED = 7 } GgitDeltaType;
Describes the type of change the delta is.
GgitDiffDelta * ggit_diff_delta_ref (GgitDiffDelta *delta
);
Atomically increments the reference count of delta
by one.
This function is MT-safe and may be called from any thread.
|
a GgitDiffDelta. |
Returns : |
a GgitDiffDelta. |
void ggit_diff_delta_unref (GgitDiffDelta *delta
);
Atomically decrements the reference count of delta
by one.
If the reference count drops to 0, delta
is freed.
|
a GgitDiffDelta. |
GgitDiffFile * ggit_diff_delta_get_old_file (GgitDiffDelta *delta
);
Gets the old file for delta
.
|
a GgitDiffDelta. |
Returns : |
the delta's old file. [transfer none] |
GgitDiffFile * ggit_diff_delta_get_new_file (GgitDiffDelta *delta
);
Gets the new file for delta
.
|
a GgitDiffDelta. |
Returns : |
the delta's new file. [transfer none] |
GgitDeltaType ggit_diff_delta_get_status (GgitDiffDelta *delta
);
Gets the GgitDeltaType for delta
.
|
a GgitDiffDelta. |
Returns : |
the delta's status. |
guint ggit_diff_delta_get_similarity (GgitDiffDelta *delta
);
Gets the similarity between delta
files.
|
a GgitDiffDelta. |
Returns : |
the delta's similarity. |
GgitDiffFlag ggit_diff_delta_get_flags (GgitDiffDelta *delta
);
Gets flags for delta
.
|
a GgitDiffDelta. |
Returns : |
the delta flags |