Code

use write_str_in_full helper to avoid literal string lengths
[git.git] / refs.c
diff --git a/refs.c b/refs.c
index dd9c9ba3f6cb1b7e742adaee89cc406c44d77367..24865cf5a6c937834b2a98ccd8d80a652ae5541e 100644 (file)
--- a/refs.c
+++ b/refs.c
@@ -668,6 +668,11 @@ int for_each_remote_ref(each_ref_fn fn, void *cb_data)
        return for_each_ref_in("refs/remotes/", fn, cb_data);
 }
 
+int for_each_replace_ref(each_ref_fn fn, void *cb_data)
+{
+       return do_for_each_ref("refs/replace/", fn, 13, 0, cb_data);
+}
+
 int for_each_rawref(each_ref_fn fn, void *cb_data)
 {
        return do_for_each_ref("refs/", fn, 0,