MCPcopy Create free account
hub / github.com/git/git / ref_update_display_info_append

Function ref_update_display_info_append

builtin/fetch.c:882–912  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

880};
881
882static 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
914static void ref_update_display_info_set_failed(struct ref_update_display_info *info)
915{

Callers 2

update_local_refFunction · 0.85
store_updated_refsFunction · 0.85

Calls 3

xstrdupFunction · 0.85
xstrdup_or_nullFunction · 0.85
oidcpyFunction · 0.85

Tested by

no test coverage detected