| 21 | #include "revision.h" |
| 22 | |
| 23 | static 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 | |
| 33 | static int filename_changed(char status) |
| 34 | { |
no test coverage detected