libgit2

git_diff_status_char

Version:

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

When you run git diff --name-status it uses single letter codes in the output such as 'A' for added, 'D' for deleted, 'M' for modified, etc. This function converts a git_delta_t value into these letters for your own purposes. GIT_DELTA_UNTRACKED will return a space (i.e. ' ').

Signature

char git_diff_status_char(git_delta_t status);

Parameters

In
status

The git_delta_t value to look up

Returns

char

The single character label for that code

Versions