Skip to content

Commit 0d680a7

Browse files
newrengitster
authored andcommitted
unpack-trees: rewrap a few overlong lines from previous patch
The previous patch made many lines a little longer, resulting in four becoming a bit too long. They were left as-is for the previous patch to facilitate reviewers verifying that we were just adding "internal." in a bunch of places, but rewrap them now. Signed-off-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 13e1fd6 commit 0d680a7

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

unpack-trees.c

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,8 +1213,8 @@ static int unpack_single_entry(int n, unsigned long mask,
12131213
* cache entry from the index aware logic.
12141214
*/
12151215
src[i + o->merge] = create_ce_entry(info, names + i, stage,
1216-
&o->internal.result, o->merge,
1217-
bit & dirmask);
1216+
&o->internal.result,
1217+
o->merge, bit & dirmask);
12181218
}
12191219

12201220
if (o->merge) {
@@ -1918,14 +1918,15 @@ int unpack_trees(unsigned len, struct tree_desc *t, struct unpack_trees_options
19181918
} else if (o->src_index == o->dst_index) {
19191919
/*
19201920
* o->dst_index (and thus o->src_index) will be discarded
1921-
* and overwritten with o->internal.result at the end of this function,
1922-
* so just use src_index's split_index to avoid having to
1923-
* create a new one.
1921+
* and overwritten with o->internal.result at the end of
1922+
* this function, so just use src_index's split_index to
1923+
* avoid having to create a new one.
19241924
*/
19251925
o->internal.result.split_index = o->src_index->split_index;
19261926
o->internal.result.split_index->refcount++;
19271927
} else {
1928-
o->internal.result.split_index = init_split_index(&o->internal.result);
1928+
o->internal.result.split_index =
1929+
init_split_index(&o->internal.result);
19291930
}
19301931
oidcpy(&o->internal.result.oid, &o->src_index->oid);
19311932
o->merge_size = len;
@@ -2049,7 +2050,8 @@ int unpack_trees(unsigned len, struct tree_desc *t, struct unpack_trees_options
20492050
move_index_extensions(&o->internal.result, o->src_index);
20502051
if (!ret) {
20512052
if (git_env_bool("GIT_TEST_CHECK_CACHE_TREE", 0))
2052-
cache_tree_verify(the_repository, &o->internal.result);
2053+
cache_tree_verify(the_repository,
2054+
&o->internal.result);
20532055
if (!o->skip_cache_tree_update &&
20542056
!cache_tree_fully_valid(o->internal.result.cache_tree))
20552057
cache_tree_update(&o->internal.result,

0 commit comments

Comments
 (0)