summaryrefslogtreecommitdiff
path: root/fast-import.c
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-04-25 18:21:04 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-04-26 01:54:27 (GMT)
commit57a6a500be8d8ee903a1dc9ea607063a1bc88a0b (patch)
tree509aebb4765d687f4d6aa8a9e90eb967d7af92e6 /fast-import.c
parent5da6534dd6ef72970989aa5a4194e13e6a587bd6 (diff)
downloadgit-57a6a500be8d8ee903a1dc9ea607063a1bc88a0b.zip
git-57a6a500be8d8ee903a1dc9ea607063a1bc88a0b.tar.gz
git-57a6a500be8d8ee903a1dc9ea607063a1bc88a0b.tar.bz2
packfile: add repository argument to unpack_entry
Add a repository argument to allow the callers of unpack_entry to be more specific about which repository to act on. This is a small mechanical change; it doesn't change the implementation to handle repositories other than the_repository yet. As with the previous commits, use a macro to catch callers passing a repository other than the_repository at compile time. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Stefan Beller <sbeller@google.com> Reviewed-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fast-import.c')
-rw-r--r--fast-import.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fast-import.c b/fast-import.c
index afe06bd..b009353 100644
--- a/fast-import.c
+++ b/fast-import.c
@@ -1376,7 +1376,7 @@ static void *gfi_unpack_entry(
*/
p->pack_size = pack_size + the_hash_algo->rawsz;
}
- return unpack_entry(p, oe->idx.offset, &type, sizep);
+ return unpack_entry(the_repository, p, oe->idx.offset, &type, sizep);
}
static const char *get_mode(const char *str, uint16_t *modep)