Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
ref-filter: limit traversal to prefix
[gitweb.git]
/
refs.c
diff --git
a/refs.c
b/refs.c
index d1c781d94e145d42bec898b3cffb81cfdf97949b..f0685c92513e306188d89380a1c3020024a4edb4 100644
(file)
--- a/
refs.c
+++ b/
refs.c
@@
-1259,6
+1259,11
@@
struct ref_iterator *refs_ref_iterator_begin(
{
struct ref_iterator *iter;
+ if (ref_paranoia < 0)
+ ref_paranoia = git_env_bool("GIT_REF_PARANOIA", 0);
+ if (ref_paranoia)
+ flags |= DO_FOR_EACH_INCLUDE_BROKEN;
+
iter = refs->be->iterator_begin(refs, prefix, flags);
/*