Function

GgitDiffblobs

Declaration [src]

void
ggit_diff_blobs (
  GgitBlob* old_blob,
  const gchar* old_as_path,
  GgitBlob* new_blob,
  const gchar* new_as_path,
  GgitDiffOptions* diff_options,
  GgitDiffFileCallback file_cb,
  GgitDiffBinaryCallback binary_cb,
  GgitDiffHunkCallback hunk_cb,
  GgitDiffLineCallback line_cb,
  gpointer* user_data,
  GError** error
)

Description [src]

Iterates over the diff calling file_cb, binary_cb, hunk_cb and line_cb.

The GgitDiffFile mode always be 0, path will be NULL and when a blob is NULL the oid will be 0.

If diff_options is NULL then the defaults specified in ggit_diff_options_new() are used.

Parameters

old_blob GgitBlob
 

A GgitBlob to diff from.

 The argument can be NULL.
 The data is owned by the caller of the function.
old_as_path const gchar*
 

Treat old_blob as if it had this filename, or NULL,

 The argument can be NULL.
 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
new_blob GgitBlob
 

A GgitBlob to diff to.

 The argument can be NULL.
 The data is owned by the caller of the function.
new_as_path const gchar*
 

Treat new_blob as if it had this filename, or NULL,

 The argument can be NULL.
 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
diff_options GgitDiffOptions
 

A GgitDiffOptions, or NULL.

 The argument can be NULL.
 The data is owned by the caller of the function.
file_cb GgitDiffFileCallback
 

a GgitDiffFileCallback.

binary_cb GgitDiffBinaryCallback
 

a GgitDiffBinaryCallback.

hunk_cb GgitDiffHunkCallback
 

a GgitDiffHunkCallback.

line_cb GgitDiffLineCallback
 

a GgitDiffLineCallback.

user_data gpointer*
 

Callback user data.

 The argument can be NULL.
 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.