summaryrefslogtreecommitdiff
path: root/revision.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2021-09-24 18:48:48 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-09-27 19:36:45 (GMT)
commit67985e4e4aa85f11593b1aec35cf7cd7e9d02fba (patch)
tree7b4046736e14046e5eee7ec5f43fbbe3dfa52eb2 /revision.c
parent2d653c50364aeccb604f6b4680190824debf637a (diff)
downloadgit-67985e4e4aa85f11593b1aec35cf7cd7e9d02fba.zip
git-67985e4e4aa85f11593b1aec35cf7cd7e9d02fba.tar.gz
git-67985e4e4aa85f11593b1aec35cf7cd7e9d02fba.tar.bz2
refs: drop "broken" flag from for_each_fullref_in()
No callers pass in anything but "0" here. Likewise to our sibling functions. Note that some of them ferry along the flag, but none of their callers pass anything but "0" either. Nor is anybody likely to change that. Callers which really want to see all of the raw refs use for_each_rawref(). And anybody interested in iterating a subset of the refs will likely be happy to use the now-default behavior of showing broken refs, but omitting dangling symlinks. So we can get rid of this whole feature. Signed-off-by: Jeff King <peff@peff.net> Reviewed-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'revision.c')
-rw-r--r--revision.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/revision.c b/revision.c
index 0dabb5a..b7a2baa 100644
--- a/revision.c
+++ b/revision.c
@@ -2548,7 +2548,7 @@ static int for_each_bisect_ref(struct ref_store *refs, each_ref_fn fn,
struct strbuf bisect_refs = STRBUF_INIT;
int status;
strbuf_addf(&bisect_refs, "refs/bisect/%s", term);
- status = refs_for_each_fullref_in(refs, bisect_refs.buf, fn, cb_data, 0);
+ status = refs_for_each_fullref_in(refs, bisect_refs.buf, fn, cb_data);
strbuf_release(&bisect_refs);
return status;
}