diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-07-16 09:42:26 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-07-16 09:42:27 -0700 |
| commit | 7b625c2a3511ac89acd14ae4bcbbc471bd50cdbb (patch) | |
| tree | 30a8a15086959ebd9bc32ebc7bdd6c30b6e6e574 /refs.h | |
| parent | 32571a0222eb85ef265e136f27e44c302302b45c (diff) | |
| parent | 87d8d8c5d09b1ee52cdf472b53b370020a7cb41c (diff) | |
| download | git-7b625c2a3511ac89acd14ae4bcbbc471bd50cdbb.tar.gz | |
Merge branch 'ph/fetch-prune-optim'
"git fetch --prune" used to be O(n^2) expensive when there are many
refs, which has been corrected.
* ph/fetch-prune-optim:
clean up interface for refs_warn_dangling_symrefs
refs: remove old refs_warn_dangling_symref
fetch-prune: optimize dangling-ref reporting
Diffstat (limited to 'refs.h')
| -rw-r--r-- | refs.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -452,10 +452,9 @@ static inline const char *has_glob_specials(const char *pattern) return strpbrk(pattern, "?*["); } -void refs_warn_dangling_symref(struct ref_store *refs, FILE *fp, - const char *msg_fmt, const char *refname); void refs_warn_dangling_symrefs(struct ref_store *refs, FILE *fp, - const char *msg_fmt, const struct string_list *refnames); + const char *indent, int dry_run, + const struct string_list *refnames); /* * Flags for controlling behaviour of pack_refs() |
