Skip to content

Commit 8dbeba1

Browse files
committed
Merge branch 'ds/sparse-cone' into maint
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 e361f36 + 7210ca4 commit 8dbeba1

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 <davem@davemloft.net>
5959
David Turner <novalis@novalis.org> <dturner@twopensource.com>
6060
David Turner <novalis@novalis.org> <dturner@twosigma.com>
6161
Derrick Stolee <dstolee@microsoft.com> <stolee@gmail.com>
62+
Derrick Stolee <dstolee@microsoft.com> Derrick Stolee via GitGitGadget <gitgitgadget@gmail.com>
6263
Deskin Miller <deskinm@umich.edu>
6364
Đoàn Trần Công Danh <congdanhqx@gmail.com> Doan Tran Cong Danh
6465
Dirk Süsserott <newsletter@dirk.my1.cc>

unpack-trees.c

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

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

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

0 commit comments

Comments
 (0)