| 1025 | } |
| 1026 | |
| 1027 | static int gitdiff_delete(struct gitdiff_data *state, |
| 1028 | const char *line, |
| 1029 | struct patch *patch) |
| 1030 | { |
| 1031 | patch->is_delete = 1; |
| 1032 | free(patch->old_name); |
| 1033 | patch->old_name = xstrdup_or_null(patch->def_name); |
| 1034 | return gitdiff_oldmode(state, line, patch); |
| 1035 | } |
| 1036 | |
| 1037 | static int gitdiff_newfile(struct gitdiff_data *state, |
| 1038 | const char *line, |
nothing calls this directly
no test coverage detected