Method

GgitPatchget_line_stats

Declaration [src]

gboolean
ggit_patch_get_line_stats (
  GgitPatch* patch,
  gsize* total_context,
  gsize* total_additions,
  gsize* total_deletions,
  GError** error
)

Description [src]

Get the line statistics of the patch.

Parameters

total_context gsize*
 

Return value for the number of context lines.

 The argument will be set by the function.
 The argument can be NULL.
total_additions gsize*
 

Return value for the number of added lines.

 The argument will be set by the function.
 The argument can be NULL.
total_deletions gsize*
 

Return value for the number of deleted lines.

 The argument will be set by the function.
 The argument can be NULL.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE if successfull, FALSE otherwise.