| 1035 | } |
| 1036 | |
| 1037 | static int gitdiff_newfile(struct gitdiff_data *state, |
| 1038 | const char *line, |
| 1039 | struct patch *patch) |
| 1040 | { |
| 1041 | patch->is_new = 1; |
| 1042 | free(patch->new_name); |
| 1043 | patch->new_name = xstrdup_or_null(patch->def_name); |
| 1044 | return gitdiff_newmode(state, line, patch); |
| 1045 | } |
| 1046 | |
| 1047 | static int gitdiff_copysrc(struct gitdiff_data *state, |
| 1048 | const char *line, |
nothing calls this directly
no test coverage detected