| 5007 | } |
| 5008 | |
| 5009 | static void strip_prefix(int prefix_length, const char **namep, const char **otherp) |
| 5010 | { |
| 5011 | /* Strip the prefix but do not molest /dev/null and absolute paths */ |
| 5012 | if (*namep && !is_absolute_path(*namep)) { |
| 5013 | *namep += prefix_length; |
| 5014 | if (**namep == '/') |
| 5015 | ++*namep; |
| 5016 | } |
| 5017 | if (*otherp && !is_absolute_path(*otherp)) { |
| 5018 | *otherp += prefix_length; |
| 5019 | if (**otherp == '/') |
| 5020 | ++*otherp; |
| 5021 | } |
| 5022 | } |
| 5023 | |
| 5024 | static void run_diff(struct diff_filepair *p, struct diff_options *o) |
| 5025 | { |
no test coverage detected