diff options
author | Stefan Beller <sbeller@google.com> | 2018-03-23 18:45:20 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-03-26 19:07:43 +0200 |
commit | 6fdb4e9f5a883aa3d96fc19b3e08d3449d53ea0c (patch) | |
tree | f053cf8da99db90dd4a031188022dc9aa048014c /sha1_name.c | |
parent | packfile: add repository argument to prepare_packed_git_one (diff) | |
download | git-6fdb4e9f5a883aa3d96fc19b3e08d3449d53ea0c.tar.xz git-6fdb4e9f5a883aa3d96fc19b3e08d3449d53ea0c.zip |
packfile: add repository argument to prepare_packed_git
Add a repository argument to allow prepare_packed_git callers to be
more specific about which repository to handle. See commit "sha1_file:
add repository argument to link_alt_odb_entry" for an explanation of
the #define trick.
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rw-r--r-- | sha1_name.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sha1_name.c b/sha1_name.c index 4325f74e0c..e0b62f3c56 100644 --- a/sha1_name.c +++ b/sha1_name.c @@ -196,7 +196,7 @@ static void find_short_packed_object(struct disambiguate_state *ds) { struct packed_git *p; - prepare_packed_git(); + prepare_packed_git(the_repository); for (p = get_packed_git(the_repository); p && !ds->ambiguous; p = p->next) unique_in_pack(p, ds); @@ -567,7 +567,7 @@ static void find_abbrev_len_packed(struct min_abbrev_data *mad) { struct packed_git *p; - prepare_packed_git(); + prepare_packed_git(the_repository); for (p = get_packed_git(the_repository); p; p = p->next) find_abbrev_len_for_pack(p, mad); } |