MCPcopy Index your code
hub / github.com/git/git / wt_status_diff_status_string

Function wt_status_diff_status_string

wt-status.c:304–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304static const char *wt_status_diff_status_string(int status)
305{
306 switch (status) {
307 case DIFF_STATUS_ADDED:
308 return _("new file:");
309 case DIFF_STATUS_COPIED:
310 return _("copied:");
311 case DIFF_STATUS_DELETED:
312 return _("deleted:");
313 case DIFF_STATUS_MODIFIED:
314 return _("modified:");
315 case DIFF_STATUS_RENAMED:
316 return _("renamed:");
317 case DIFF_STATUS_TYPE_CHANGED:
318 return _("typechange:");
319 case DIFF_STATUS_UNKNOWN:
320 return _("unknown:");
321 case DIFF_STATUS_UNMERGED:
322 return _("unmerged:");
323 default:
324 return NULL;
325 }
326}
327
328static int maxwidth(const char *(*label)(int), int minval, int maxval)
329{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected