Top | Description | Object Hierarchy | ![]() |
![]() |
![]() |
![]() |
GgitDiffHunk; const gchar * ggit_diff_hunk_get_header (GgitDiffHunk *hunk
); gint ggit_diff_hunk_get_new_lines (GgitDiffHunk *hunk
); gint ggit_diff_hunk_get_new_start (GgitDiffHunk *hunk
); gint ggit_diff_hunk_get_old_lines (GgitDiffHunk *hunk
); gint ggit_diff_hunk_get_old_start (GgitDiffHunk *hunk
); GType ggit_diff_hunk_get_type (void
); GgitDiffHunk * ggit_diff_hunk_ref (GgitDiffHunk *hunk
); void ggit_diff_hunk_unref (GgitDiffHunk *hunk
);
gint ggit_diff_hunk_get_new_lines (GgitDiffHunk *hunk
);
Gets the number of lines in the new file.
|
a GgitDiffHunk. |
Returns : |
the number of lines in the new file. |
gint ggit_diff_hunk_get_new_start (GgitDiffHunk *hunk
);
Gets the starting line number in the new file.
|
a GgitDiffHunk. |
Returns : |
the starting line number in the new file. |
gint ggit_diff_hunk_get_old_lines (GgitDiffHunk *hunk
);
Gets the number of lines in the old file.
|
a GgitDiffHunk. |
Returns : |
the number of lines in the old file. |
gint ggit_diff_hunk_get_old_start (GgitDiffHunk *hunk
);
Gets the starting line number in the old file.
|
a GgitDiffHunk. |
Returns : |
the starting line number in the old file. |
GgitDiffHunk * ggit_diff_hunk_ref (GgitDiffHunk *hunk
);
Atomically increments the reference count of hunk
by one.
This function is MT-safe and may be called from any thread.
|
a GgitDiffHunk. |
Returns : |
a GgitDiffHunk. |
void ggit_diff_hunk_unref (GgitDiffHunk *hunk
);
Atomically decrements the reference count of hunk
by one.
If the reference count drops to 0, hunk
is freed.
|
a GgitDiffHunk. |