diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-05-06 14:45:44 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-05-06 14:45:44 -0700 |
commit | 8429f2b42d04a0598079c847c39d45d777613939 (patch) | |
tree | 5c4c3954173955e4cbaf1551b6757512caf324fa /builtin/pack-objects.c | |
parent | 89d3eafe9019b407d6b2cf8913c6845bde50b178 (diff) | |
parent | b6aec868afb17acdbd486c09602a658e14c98602 (diff) | |
download | git-8429f2b42d04a0598079c847c39d45d777613939.tar.gz |
Merge branch 'bc/object-id'
Move from unsigned char[20] to struct object_id continues.
* bc/object-id:
match-trees: convert several leaf functions to use struct object_id
tree-walk: convert tree_entry_extract() to use struct object_id
struct name_entry: use struct object_id instead of unsigned char sha1[20]
match-trees: convert shift_tree() and shift_tree_by() to use object_id
test-match-trees: convert to use struct object_id
sha1-name: introduce a get_oid() function
Diffstat (limited to 'builtin/pack-objects.c')
-rw-r--r-- | builtin/pack-objects.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c index a27de5b323..d56b2c2d1e 100644 --- a/builtin/pack-objects.c +++ b/builtin/pack-objects.c @@ -1186,7 +1186,7 @@ static void add_pbase_object(struct tree_desc *tree, if (cmp < 0) return; if (name[cmplen] != '/') { - add_object_entry(entry.sha1, + add_object_entry(entry.oid->hash, object_type(entry.mode), fullname, 1); return; @@ -1197,7 +1197,7 @@ static void add_pbase_object(struct tree_desc *tree, const char *down = name+cmplen+1; int downlen = name_cmp_len(down); - tree = pbase_tree_get(entry.sha1); + tree = pbase_tree_get(entry.oid->hash); if (!tree) return; init_tree_desc(&sub, tree->tree_data, tree->tree_size); |