MCPcopy Create free account
hub / github.com/git/git / compare_paths

Function compare_paths

combine-diff.c:23–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21#include "revision.h"
22
23static int compare_paths(const struct combine_diff_path *one,
24 const struct diff_filespec *two)
25{
26 if (!S_ISDIR(one->mode) && !S_ISDIR(two->mode))
27 return strcmp(one->path, two->path);
28
29 return base_name_compare(one->path, strlen(one->path), one->mode,
30 two->path, strlen(two->path), two->mode);
31}
32
33static int filename_changed(char status)
34{

Callers 1

intersect_pathsFunction · 0.85

Calls 1

base_name_compareFunction · 0.85

Tested by

no test coverage detected