libgit2

git_diff_status_char

Version:

Look up the single character abbreviation for a delta status code.

When you call git_diff_print_compact it prints single letter codes into the output such as 'A' for added, 'D' for deleted, 'M' for modified, etc. It is sometimes convenient to convert a git_delta_t value into these letters for your own purposes. This function does just that. By the way, unmodified will return a space (i.e. ' ').

Signature

char git_diff_status_char(git_delta_t status);

Parameters

In
status

Returns

char

The single character label for that code

Versions