| 4371 | } |
| 4372 | |
| 4373 | void fill_filespec(struct diff_filespec *spec, const struct object_id *oid, |
| 4374 | int oid_valid, unsigned short mode) |
| 4375 | { |
| 4376 | if (mode) { |
| 4377 | spec->mode = canon_mode(mode); |
| 4378 | oidcpy(&spec->oid, oid); |
| 4379 | spec->oid_valid = oid_valid; |
| 4380 | } |
| 4381 | } |
| 4382 | |
| 4383 | /* |
| 4384 | * Given a name and sha1 pair, if the index tells us the file in |
no test coverage detected