Skip to content

Commit 043426c

Browse files
committed
Merge branch 'ds/sparse-cone'
The code recently added in this release to move to the entry beyond the ones in the same directory in the index in the sparse-cone mode did not count the number of entries to skip over incorrectly, which has been corrected. * ds/sparse-cone: .mailmap: fix GGG authoship screwup unpack-trees: correctly compute result count
2 parents 34246a1 + 7210ca4 commit 043426c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ David S. Miller <[email protected]>
5959
6060
6161
62+
Derrick Stolee <[email protected]> Derrick Stolee via GitGitGadget <[email protected]>
6263
Deskin Miller <[email protected]>
6364
Đoàn Trần Công Danh <[email protected]> Doan Tran Cong Danh
6465
Dirk Süsserott <[email protected]>

unpack-trees.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,14 +1309,14 @@ static int clear_ce_flags_dir(struct index_state *istate,
13091309

13101310
if (pl->use_cone_patterns && orig_ret == MATCHED_RECURSIVE) {
13111311
struct cache_entry **ce = cache;
1312-
rc = (cache_end - cache) / sizeof(struct cache_entry *);
1312+
rc = cache_end - cache;
13131313

13141314
while (ce < cache_end) {
13151315
(*ce)->ce_flags &= ~clear_mask;
13161316
ce++;
13171317
}
13181318
} else if (pl->use_cone_patterns && orig_ret == NOT_MATCHED) {
1319-
rc = (cache_end - cache) / sizeof(struct cache_entry *);
1319+
rc = cache_end - cache;
13201320
} else {
13211321
rc = clear_ce_flags_1(istate, cache, cache_end - cache,
13221322
prefix,

0 commit comments

Comments
 (0)