diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-05-08 06:59:21 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-08 06:59:21 (GMT) |
commit | 174774cd519846616edc475fcbc98237409ffc21 (patch) | |
tree | 604a92001e30c35c702e341c2aa835e41ce3a113 /builtin/replace.c | |
parent | b10edb2df55241b2e042b3d5473537904d09d193 (diff) | |
parent | 90e777f1e20dd6bdc022d5720a9169ea2205d9ad (diff) | |
download | git-174774cd519846616edc475fcbc98237409ffc21.zip git-174774cd519846616edc475fcbc98237409ffc21.tar.gz git-174774cd519846616edc475fcbc98237409ffc21.tar.bz2 |
Merge branch 'sb/object-store-replace'
The effort to pass the repository in-core structure throughout the
API continues. This round deals with the code that implements the
refs/replace/ mechanism.
* sb/object-store-replace:
replace-object: allow lookup_replace_object to handle arbitrary repositories
replace-object: allow do_lookup_replace_object to handle arbitrary repositories
replace-object: allow prepare_replace_object to handle arbitrary repositories
refs: allow for_each_replace_ref to handle arbitrary repositories
refs: store the main ref store inside the repository struct
replace-object: add repository argument to lookup_replace_object
replace-object: add repository argument to do_lookup_replace_object
replace-object: add repository argument to prepare_replace_object
refs: add repository argument to for_each_replace_ref
refs: add repository argument to get_main_ref_store
replace-object: check_replace_refs is safe in multi repo environment
replace-object: eliminate replace objects prepared flag
object-store: move lookup_replace_object to replace-object.h
replace-object: move replace_map to object store
replace_object: use oidmap
Diffstat (limited to 'builtin/replace.c')
-rw-r--r-- | builtin/replace.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin/replace.c b/builtin/replace.c index 935647b..237ea65 100644 --- a/builtin/replace.c +++ b/builtin/replace.c @@ -14,6 +14,8 @@ #include "refs.h" #include "parse-options.h" #include "run-command.h" +#include "object-store.h" +#include "repository.h" #include "tag.h" static const char * const git_replace_usage[] = { @@ -83,7 +85,7 @@ static int list_replace_refs(const char *pattern, const char *format) "valid formats are 'short', 'medium' and 'long'\n", format); - for_each_replace_ref(show_reference, (void *)&data); + for_each_replace_ref(the_repository, show_reference, (void *)&data); return 0; } |