![]() |
![]() |
![]() |
libgit2-glib Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
GgitDiffPatch; GgitDiffPatch * ggit_diff_patch_ref (GgitDiffPatch *diff_patch
); void ggit_diff_patch_unref (GgitDiffPatch *diff_patch
); gchar * ggit_diff_patch_to_string (GgitDiffPatch *diff_patch
,GError **error
); gboolean ggit_diff_patch_to_stream (GgitDiffPatch *diff_patch
,GOutputStream *stream
,GError **error
);
GgitDiffPatch * ggit_diff_patch_ref (GgitDiffPatch *diff_patch
);
Atomically increments the reference count of entry
by one.
This function is MT-safe and may be called from any thread.
|
a GgitDiffPatch. |
Returns : |
a GgitDiffPatch. [transfer none] |
void ggit_diff_patch_unref (GgitDiffPatch *diff_patch
);
Atomically decrements the reference count of entry
by one.
If the reference count drops to 0, entry
is freed.
|
a GgitDiffPatch. |
gchar * ggit_diff_patch_to_string (GgitDiffPatch *diff_patch
,GError **error
);
Gets the content of a patch as a single diff text.
|
a GgitDiffPatch. |
|
a GError for error reporting, or NULL . |
Returns : |
the content of a patch as a single diff text. |
gboolean ggit_diff_patch_to_stream (GgitDiffPatch *diff_patch
,GOutputStream *stream
,GError **error
);
Write the contents of a patch to the provided stream.
|
a GgitDiffPatch. |
|
a GOutputStream. |
|
a GError for error reporting, or NULL . |
Returns : |
TRUE if the patch was written successfully, FALSE otherwise. |