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

Function refs_warn_dangling_symrefs

refs.c:521–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

519}
520
521void refs_warn_dangling_symrefs(struct ref_store *refs, FILE *fp,
522 const char *indent, int dry_run,
523 const struct string_list *refnames)
524{
525 struct warn_if_dangling_data data = {
526 .refs = refs,
527 .fp = fp,
528 .refnames = refnames,
529 .indent = indent,
530 .dry_run = dry_run,
531 };
532 struct refs_for_each_ref_options opts = {
533 .flags = REFS_FOR_EACH_INCLUDE_BROKEN,
534 };
535 refs_for_each_ref_ext(refs, warn_if_dangling_symref, &data, &opts);
536}
537
538int refs_for_each_tag_ref(struct ref_store *refs, refs_for_each_cb cb, void *cb_data)
539{

Callers 2

prune_refsFunction · 0.85
prune_remoteFunction · 0.85

Calls 1

refs_for_each_ref_extFunction · 0.85

Tested by

no test coverage detected