Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-06-27 00:09:29 +0300
committerJunio C Hamano <gitster@pobox.com>2017-06-27 00:09:29 +0300
commit5c83d850d076ebc00b149975981703a6a664892b (patch)
treead73b67921955035e55321ade766f28cbc9cc048 /refs.c
parent849b44cdf193908dfe1cadc731fb23019b53a211 (diff)
parent03df567fbf6afeca32f6a27d04656c1a3a162453 (diff)
Merge branch 'mh/packed-ref-store-prep'
Bugfix for a topic that is (only) in 'master'. * mh/packed-ref-store-prep: for_each_bisect_ref(): don't trim refnames lock_packed_refs(): fix cache validity check
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/refs.c b/refs.c
index 84112c88ee..88658ba769 100644
--- a/refs.c
+++ b/refs.c
@@ -1342,6 +1342,18 @@ int for_each_ref_in_submodule(const char *submodule, const char *prefix,
prefix, fn, cb_data);
}
+int for_each_fullref_in_submodule(const char *submodule, const char *prefix,
+ each_ref_fn fn, void *cb_data,
+ unsigned int broken)
+{
+ unsigned int flag = 0;
+
+ if (broken)
+ flag = DO_FOR_EACH_INCLUDE_BROKEN;
+ return do_for_each_ref(get_submodule_ref_store(submodule),
+ prefix, fn, 0, flag, cb_data);
+}
+
int for_each_replace_ref(each_ref_fn fn, void *cb_data)
{
return do_for_each_ref(get_main_ref_store(),