diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-08-03 11:01:10 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-08-03 11:01:10 -0700 |
commit | 31a0ad545681159be2ccc633a1a16a891cafbae3 (patch) | |
tree | 26ab4d6997f50fdab7ecebfa950d926683a5c492 /refs.c | |
parent | a17c56c056d5fea0843b429132904c429a900229 (diff) | |
parent | 58d121b22b5b83a27a1891dcf335458f687cac1e (diff) | |
download | git-31a0ad545681159be2ccc633a1a16a891cafbae3.tar.gz |
Merge branch 'mh/replace-refs'
Add an environment variable to tell Git to look into refs hierarchy
other than refs/replace/ for the object replacement data.
* mh/replace-refs:
Allow to control where the replace refs are looked for
Diffstat (limited to 'refs.c')
-rw-r--r-- | refs.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2122,7 +2122,8 @@ int for_each_remote_ref_submodule(const char *submodule, each_ref_fn fn, void *c int for_each_replace_ref(each_ref_fn fn, void *cb_data) { - return do_for_each_ref(&ref_cache, "refs/replace/", fn, 13, 0, cb_data); + return do_for_each_ref(&ref_cache, git_replace_ref_base, fn, + strlen(git_replace_ref_base), 0, cb_data); } int head_ref_namespaced(each_ref_fn fn, void *cb_data) |