* Returns a copy of the longest leading path common among all * pathspecs. */
| 263 | * pathspecs. |
| 264 | */ |
| 265 | char *common_prefix(const struct pathspec *pathspec) |
| 266 | { |
| 267 | unsigned long len = common_prefix_len(pathspec); |
| 268 | |
| 269 | return len ? xmemdupz(pathspec->items[0].match, len) : NULL; |
| 270 | } |
| 271 | |
| 272 | int fill_directory(struct dir_struct *dir, |
| 273 | struct index_state *istate, |
no test coverage detected