| 880 | }; |
| 881 | |
| 882 | static struct ref_update_display_info *ref_update_display_info_append( |
| 883 | struct ref_update_display_info_array *array, |
| 884 | char success_code, |
| 885 | char fail_code, |
| 886 | const char *summary, |
| 887 | const char *success_detail, |
| 888 | const char *fail_detail, |
| 889 | const char *ref, |
| 890 | const char *remote, |
| 891 | const struct object_id *old_oid, |
| 892 | const struct object_id *new_oid) |
| 893 | { |
| 894 | struct ref_update_display_info *info; |
| 895 | |
| 896 | ALLOC_GROW(array->info, array->nr + 1, array->alloc); |
| 897 | info = &array->info[array->nr++]; |
| 898 | |
| 899 | info->failed = false; |
| 900 | info->success_code = success_code; |
| 901 | info->fail_code = fail_code; |
| 902 | info->summary = xstrdup(summary); |
| 903 | info->success_detail = xstrdup_or_null(success_detail); |
| 904 | info->fail_detail = xstrdup_or_null(fail_detail); |
| 905 | info->remote = xstrdup(remote); |
| 906 | info->ref = xstrdup(ref); |
| 907 | |
| 908 | oidcpy(&info->old_oid, old_oid); |
| 909 | oidcpy(&info->new_oid, new_oid); |
| 910 | |
| 911 | return info; |
| 912 | } |
| 913 | |
| 914 | static void ref_update_display_info_set_failed(struct ref_update_display_info *info) |
| 915 | { |
no test coverage detected