git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 02/10] unpack-trees: make sparse aware

From
Derrick Stolee <stolee@gmail.com>
Date
Apr 21, 2021, 13:41 UTC
Message-ID
<a777331a-aff6-766f-30da-eef052ad83ee@gmail.com>
In-Reply-To
<CABPp-BHcdhO_kEdqR23sDdGAgoSu2R-HBWv-RmzQvJ0ysWtzxg@mail.gmail.com>
On 4/20/2021 7:00 PM, Elijah Newren wrote:
Show 20 quoted lines
> On Tue, Apr 13, 2021 at 7:01 AM Derrick Stolee via GitGitGadget
> <gitgitgadget@gmail.com> wrote:
>> diff --git a/dir.h b/dir.h
>> index 51cb0e217247..9d6666f520f3 100644
>> --- a/dir.h
>> +++ b/dir.h
>> @@ -503,7 +503,7 @@ static inline int ce_path_match(struct index_state *istate,
>>                                 char *seen)
>>  {
>>         return match_pathspec(istate, pathspec, ce->name, ce_namelen(ce), 0, seen,
>> -                             S_ISDIR(ce->ce_mode) || S_ISGITLINK(ce->ce_mode));
>> +                             S_ISSPARSEDIR(ce->ce_mode) || S_ISDIR(ce->ce_mode) || S_ISGITLINK(ce->ce_mode));
> 
> I'm confused why this change would be needed, or why it'd semantically
> be meaningful here either.  Doesn't S_ISSPARSEDIR() being true imply
> S_ISDIR() is true (and perhaps even vice versa?).
> 
> By chance, was this a leftover from your early RFC changes from a few
> series ago when you had an entirely different mode for sparse
> directory entries?

I will double-check on this with additional testing and debugging. Your comments below make it clear that this patch would benefit from some additional splitting.

Show 20 quoted lines
>>  }
>>
>>  static inline int dir_path_match(struct index_state *istate,
>> diff --git a/preload-index.c b/preload-index.c
>> index e5529a586366..35e67057ca9b 100644
>> --- a/preload-index.c
>> +++ b/preload-index.c
>> @@ -55,6 +55,8 @@ static void *preload_thread(void *_data)
>>                         continue;
>>                 if (S_ISGITLINK(ce->ce_mode))
>>                         continue;
>> +               if (S_ISSPARSEDIR(ce->ce_mode))
>> +                       continue;
>>                 if (ce_uptodate(ce))
>>                         continue;
>>                 if (ce_skip_worktree(ce))
> 
> Don't we have S_ISSPARSEDIR(ce->ce_mode) implies ce_skip_worktree(ce)?
>  Is this a duplicate check?  If so, is it still desirable for
> future-proofing or code clarity, or is it strictly redundant?

You're right, we could skip this one because the ce_skip_worktree(ce) is enough to cover this case. I think I created this one because I was auditing uses of S_ISGITLINK().

Show 18 quoted lines
>> diff --git a/read-cache.c b/read-cache.c
>> index 29ffa9ac5db9..6308234b4838 100644
>> --- a/read-cache.c
>> +++ b/read-cache.c
>> @@ -1594,6 +1594,9 @@ int refresh_index(struct index_state *istate, unsigned int flags,
>>                 if (ignore_skip_worktree && ce_skip_worktree(ce))
>>                         continue;
>>
>> +               if (istate->sparse_index && S_ISSPARSEDIR(ce->ce_mode))
>> +                       continue;
>> +
> 
> I'm a bit confused about what could trigger ce_skip_worktree(ce) &&
> !ignore_skip_worktree and why it'd be desirable to refresh
> skip-worktree entries.  However, this is tangential to your patch and
> has apparently been around since 2009 (in particular, from 56cac48c35
> ("ie_match_stat(): do not ignore skip-worktree bit with
> CE_MATCH_IGNORE_VALID", 2009-12-14)).

This is probably better served with a statement like this earlier in the method:

	if (ignore_skip_worktree)
		ensure_full_index(istate);

It seems like ignoring the skip worktree bits is a rare occasion and it will be worth expanding the index for that case.

Show 22 quoted lines
>>                 if (pathspec && !ce_path_match(istate, ce, pathspec, seen))
>>                         filtered = 1;
>>
>> diff --git a/unpack-trees.c b/unpack-trees.c
>> index dddf106d5bd4..9a62e823928a 100644
>> --- a/unpack-trees.c
>> +++ b/unpack-trees.c
>> @@ -586,6 +586,13 @@ static void mark_ce_used(struct cache_entry *ce, struct unpack_trees_options *o)
>>  {
>>         ce->ce_flags |= CE_UNPACKED;
>>
>> +       /*
>> +        * If this is a sparse directory, don't advance cache_bottom.
>> +        * That will be advanced later using the cache-tree data.
>> +        */
>> +       if (S_ISSPARSEDIR(ce->ce_mode))
>> +               return;
>> +
> 
> I don't understand cache_bottom stuff; we might want to get Junio to
> look over it.  Or maybe I just need to dig a bit further and attempt
> to understand it.

I remember looking very careful at this when I created this (and found it worth a comment) but I don't recall enough off the top of my head. This is worth splitting out with a careful message, which will force me to reexamine the cache_bottom member.

Show 35 quoted lines
>>         if (o->cache_bottom < o->src_index->cache_nr &&
>>             o->src_index->cache[o->cache_bottom] == ce) {
>>                 int bottom = o->cache_bottom;
>> @@ -984,6 +991,9 @@ static int do_compare_entry(const struct cache_entry *ce,
>>         ce_len -= pathlen;
>>         ce_name = ce->name + pathlen;
>>
>> +       /* remove directory separator if a sparse directory entry */
>> +       if (S_ISSPARSEDIR(ce->ce_mode))
>> +               ce_len--;
>>         return df_name_compare(ce_name, ce_len, S_IFREG, name, namelen, mode);
> 
> Shouldn't we be passing ce->ce_mode instead of S_IFREG here as well?
> 
> Note the following sort order:
>    foo
>    foo.txt
>    foo/
>    foo/bar
> 
> You've trimmed off the '/', so 'foo/' would be ordered where 'foo' is,
> but df_name_compare() exists to make "foo" sort exactly where "foo/"
> would when "foo" is a directory.  Will your df_name_compare() call
> here result in foo.txt being placed after all the "foo/<subpath>"
> entries in the index and perhaps cause other problems down the line?
> (Are there issues, e.g. with cache-trees getting wrong ordering from
> this, or even writing out indexes or tree objects with the wrong
> ordering?  I've written out trees to disk with wrong ordering before
> and git usually survives but gets really confused with diffs.)
> 
> Since at least one caller of compare_entry() takes the return result
> and does a "if (cmp < 0)", this order is going to matter in some
> cases.  Perhaps we need some testcases where there is a sparse
> directory entry named "foo/" and a file recorded in some relevant tree
> with the name "foo.txt" to be able to trigger these lines of code?

I will do some testing to find out why removing the separator here was necessary or valuable.

Show 14 quoted lines
>>  }
>>
>> @@ -993,6 +1003,10 @@ static int compare_entry(const struct cache_entry *ce, const struct traverse_inf
>>         if (cmp)
>>                 return cmp;
>>
>> +       /* If ce is a sparse directory, then allow equality here. */
>> +       if (S_ISSPARSEDIR(ce->ce_mode))
>> +               return 0;
>> +
> 
> Um...so a sparse directory compares equal to _anything_ at all?  I'm
> really confused why this would be desirable.  Am I missing something
> here?

The context is that is removed from the patch is that "cmp" is the response from do_compare_entry(), which does a length-limited comparison. If cmp is non-zero, then we've already returned the difference.

The rest of the method is checking if the 'info' input is actually a parent directory of the _path_ given at this cache entry.

>>         /*
>>          * Even if the beginning compared identically, the ce should
>>          * compare as bigger than a directory leading up to it!
The line after this is:
	return ce_namelen(ce) > traverse_path_len(info, tree_entry_len(n));

This comparison is saying "these paths match up to the directory specified by info and n, but we need 'ce' to be a file within that directory." But in the case of a sparse directory entry, we can skip this comparison.

Show 13 quoted lines
>> @@ -1243,6 +1257,7 @@ static int unpack_callback(int n, unsigned long mask, unsigned long dirmask, str
>>         struct cache_entry *src[MAX_UNPACK_TREES + 1] = { NULL, };
>>         struct unpack_trees_options *o = info->data;
>>         const struct name_entry *p = names;
>> +       unsigned recurse = 1;
> 
> "recurse" sent my mind off into questions about safety checks, base
> cases, etc., instead of just the simple "we don't want to read in
> directories corresponding to sparse entries".  I think this would be
> clearer either if the variable had the sparsity concept embedded in
> its name somewhere (e.g. "unsigned sparse_entry = 0", and check for
> (!sparse_entry) instead of (recurse) below), or with a comment about
> why there are cases where you want to avoid recursion.

I can understand that. This callback is confusing because it _does_ recurse, but through a sequence of methods instead of actually calling itself.

It would be better to say something like "unpack_subdirectories = 1" and disabling it when we are in a sparse directory.

Show 15 quoted lines
>>
>>         /* Find first entry with a real name (we could use "mask" too) */
>>         while (!p->mode)
>> @@ -1284,12 +1299,16 @@ static int unpack_callback(int n, unsigned long mask, unsigned long dirmask, str
>>                                         }
>>                                 }
>>                                 src[0] = ce;
>> +
>> +                               if (S_ISSPARSEDIR(ce->ce_mode))
>> +                                       recurse = 0;
> 
> Ah, the context here doesn't show it but this is in the "if (!cmp)"
> block, i.e. if we found a match for the sparse directory.  This makes
> sense, to me, _if_ we ignore the above question about sparse
> directories matching equal to anything and everything.
I believe that "anything and everything" concern has been resolved.
Show 19 quoted lines
>> @@ -1319,7 +1338,8 @@ static int unpack_callback(int n, unsigned long mask, unsigned long dirmask, str
>>                         }
>>                 }
>>
>> -               if (traverse_trees_recursive(n, dirmask, mask & ~dirmask,
>> +               if (recurse &&
>> +                   traverse_trees_recursive(n, dirmask, mask & ~dirmask,
>>                                              names, info) < 0)
>>                         return -1;
>>                 return mask;
> 
> Nice.  :-)
> 
> 
> I think your patch was mostly about the recurse stuff, which other
> than the name or a comment about it look good to me.  However, all the
> other preparatory small tweaks brought up a lot of questions or
> confusion for me.  I'm worried there might be a bug or two, though I
> may have just misunderstood some of the code bits.
 
This patch could probably be split up a little to make these things
clearer. Thanks for bringing up the tricky bits.
-Stolee
Previous: Elijah NewrenNext: Elijah Newren
Message 4 of 215 in “Sparse-index: integrate with status and add”
  1. 00/10 Sparse-index: integrate with status and addDerrick Stolee via GitGitGadget, Apr 13, 2021
  2. 02/10 unpack-trees: make sparse awareDerrick Stolee via GitGitGadget, Apr 13, 2021
  3. Elijah NewrenApr 20, 2021
  4. Derrick StoleeApr 21, 2021
  5. Elijah NewrenApr 21, 2021
  6. Matheus Tavares BernardinoApr 22, 2021
  7. Derrick StoleeApr 21, 2021
  8. Matheus Tavares BernardinoApr 21, 2021
  9. Elijah NewrenApr 21, 2021
  10. Matheus Tavares BernardinoApr 21, 2021
  11. Elijah NewrenApr 21, 2021
  12. Derrick StoleeApr 23, 2021
  13. 01/10 t1092: add tests for status/add and sparse filesDerrick Stolee via GitGitGadget, Apr 13, 2021
  14. Elijah NewrenApr 20, 2021
  15. Derrick StoleeApr 21, 2021
  16. Matheus Tavares BernardinoApr 21, 2021
  17. Derrick StoleeApr 23, 2021
  18. 05/10 status: use sparse-index throughoutDerrick Stolee via GitGitGadget, Apr 13, 2021
  19. Elijah NewrenApr 21, 2021
  20. Derrick StoleeApr 21, 2021
  21. 04/10 status: skip sparse-checkout percentage with sparse-indexDerrick Stolee via GitGitGadget, Apr 13, 2021
  22. Elijah NewrenApr 20, 2021
  23. Derrick StoleeApr 21, 2021
  24. 03/10 dir.c: accept a directory as part of cone-mode patternsDerrick Stolee via GitGitGadget, Apr 13, 2021
  25. Elijah NewrenApr 20, 2021
  26. Derrick StoleeApr 21, 2021
  27. 10/10 fsmonitor: test with sparse indexDerrick Stolee via GitGitGadget, Apr 13, 2021
  28. Elijah NewrenApr 21, 2021
  29. 07/10 add: allow operating on a sparse-only indexDerrick Stolee via GitGitGadget, Apr 13, 2021
  30. 08/10 pathspec: stop calling ensure_full_indexDerrick Stolee via GitGitGadget, Apr 13, 2021
  31. Elijah NewrenApr 21, 2021
  32. 09/10 t7519: add sparse directories to FS monitor testsDerrick Stolee via GitGitGadget, Apr 13, 2021
  33. 06/10 dir: use expand_to_path() for sparse directoriesDerrick Stolee via GitGitGadget, Apr 13, 2021
  34. Elijah NewrenApr 21, 2021
  35. Elijah NewrenApr 21, 2021
  36. Derrick StoleeApr 21, 2021
  37. Matheus Tavares BernardinoApr 13, 2021
  38. Derrick StoleeApr 14, 2021
  39. 0/8 Sparse-index: integrate with statusDerrick Stolee via GitGitGadget, Apr 23, 2021
  40. 1/8 t1092: add tests for status/add and sparse filesDerrick Stolee via GitGitGadget, Apr 23, 2021
  41. Matheus Tavares BernardinoMay 13, 2021
  42. Derrick StoleeMay 14, 2021
  43. 2/8 unpack-trees: preserve cache_bottomDerrick Stolee via GitGitGadget, Apr 23, 2021
  44. 3/8 unpack-trees: compare sparse directories correctlyDerrick Stolee via GitGitGadget, Apr 23, 2021
  45. Elijah NewrenMay 13, 2021
  46. 6/8 status: skip sparse-checkout percentage with sparse-indexDerrick Stolee via GitGitGadget, Apr 23, 2021
  47. 4/8 unpack-trees: stop recursing into sparse directoriesDerrick Stolee via GitGitGadget, Apr 23, 2021
  48. Elijah NewrenMay 13, 2021
  49. 5/8 dir.c: accept a directory as part of cone-mode patternsDerrick Stolee via GitGitGadget, Apr 23, 2021
  50. 7/8 status: use sparse-index throughoutDerrick Stolee via GitGitGadget, Apr 23, 2021
  51. 8/8 fsmonitor: test with sparse indexDerrick Stolee via GitGitGadget, Apr 23, 2021
  52. Elijah NewrenMay 13, 2021
  53. Derrick StoleeMay 14, 2021
  54. 00/12 Sparse-index: integrate with statusDerrick Stolee via GitGitGadget, May 14, 2021
  55. 02/12 sparse-index: include EXTENDED flag when expandingDerrick Stolee via GitGitGadget, May 14, 2021
  56. Elijah NewrenMay 18, 2021
  57. Derrick StoleeMay 18, 2021
  58. Elijah NewrenMay 18, 2021
  59. Derrick StoleeMay 18, 2021
  60. 01/12 sparse-index: skip indexes with unmerged entriesDerrick Stolee via GitGitGadget, May 14, 2021
  61. 03/12 t1092: expand repository data shapeDerrick Stolee via GitGitGadget, May 14, 2021
  62. Elijah NewrenMay 18, 2021
  63. Derrick StoleeMay 18, 2021
  64. 04/12 t1092: add tests for status/add and sparse filesDerrick Stolee via GitGitGadget, May 14, 2021
  65. 05/12 unpack-trees: preserve cache_bottomDerrick Stolee via GitGitGadget, May 14, 2021
  66. 07/12 unpack-trees: stop recursing into sparse directoriesDerrick Stolee via GitGitGadget, May 14, 2021
  67. Elijah NewrenMay 18, 2021
  68. Elijah NewrenMay 18, 2021
  69. Derrick StoleeMay 18, 2021
  70. 06/12 unpack-trees: compare sparse directories correctlyDerrick Stolee via GitGitGadget, May 14, 2021
  71. 09/12 status: skip sparse-checkout percentage with sparse-indexDerrick Stolee via GitGitGadget, May 14, 2021
  72. 10/12 status: use sparse-index throughoutDerrick Stolee via GitGitGadget, May 14, 2021
  73. 11/12 wt-status: expand added sparse directory entriesDerrick Stolee via GitGitGadget, May 14, 2021
  74. Elijah NewrenMay 18, 2021
  75. Derrick StoleeMay 18, 2021
  76. Derrick StoleeMay 18, 2021
  77. Elijah NewrenMay 19, 2021
  78. 12/12 fsmonitor: integrate with sparse indexDerrick Stolee via GitGitGadget, May 14, 2021
  79. 08/12 dir.c: accept a directory as part of cone-mode patternsDerrick Stolee via GitGitGadget, May 14, 2021
  80. 00/12 Sparse-index: integrate with statusDerrick Stolee via GitGitGadget, May 21, 2021
  81. 01/12 sparse-index: skip indexes with unmerged entriesDerrick Stolee via GitGitGadget, May 21, 2021
  82. 03/12 t1092: expand repository data shapeDerrick Stolee via GitGitGadget, May 21, 2021
  83. 02/12 sparse-index: include EXTENDED flag when expandingDerrick Stolee via GitGitGadget, May 21, 2021
  84. 04/12 t1092: add tests for status/add and sparse filesDerrick Stolee via GitGitGadget, May 21, 2021
  85. 05/12 unpack-trees: preserve cache_bottomDerrick Stolee via GitGitGadget, May 21, 2021
  86. 06/12 unpack-trees: compare sparse directories correctlyDerrick Stolee via GitGitGadget, May 21, 2021
  87. 07/12 unpack-trees: be careful around sparse directory entriesDerrick Stolee via GitGitGadget, May 21, 2021
  88. Derrick StoleeMay 28, 2021
  89. 08/12 dir.c: accept a directory as part of cone-mode patternsDerrick Stolee via GitGitGadget, May 21, 2021
  90. 09/12 status: skip sparse-checkout percentage with sparse-indexDerrick Stolee via GitGitGadget, May 21, 2021
  91. 10/12 status: use sparse-index throughoutDerrick Stolee via GitGitGadget, May 21, 2021
  92. 11/12 wt-status: expand added sparse directory entriesDerrick Stolee via GitGitGadget, May 21, 2021
  93. 12/12 fsmonitor: integrate with sparse indexDerrick Stolee via GitGitGadget, May 21, 2021
  94. 00/14 Sparse-index: integrate with statusDerrick Stolee via GitGitGadget, Jun 7, 2021
  95. 09/14 dir.c: accept a directory as part of cone-mode patternsDerrick Stolee via GitGitGadget, Jun 7, 2021
  96. 01/14 sparse-index: skip indexes with unmerged entriesDerrick Stolee via GitGitGadget, Jun 7, 2021
  97. 07/14 unpack-trees: compare sparse directories correctlyDerrick Stolee via GitGitGadget, Jun 7, 2021
  98. 08/14 unpack-trees: unpack sparse directory entriesDerrick Stolee via GitGitGadget, Jun 7, 2021
  99. Elijah NewrenJun 9, 2021
  100. Derrick StoleeJun 9, 2021
  101. 11/14 status: skip sparse-checkout percentage with sparse-indexDerrick Stolee via GitGitGadget, Jun 7, 2021
  102. 05/14 t1092: add tests for status/add and sparse filesDerrick Stolee via GitGitGadget, Jun 7, 2021
  103. 12/14 status: use sparse-index throughoutDerrick Stolee via GitGitGadget, Jun 7, 2021
  104. 03/14 t1092: replace incorrect 'echo' with 'cat'Derrick Stolee via GitGitGadget, Jun 7, 2021
  105. Elijah NewrenJun 8, 2021
  106. 06/14 unpack-trees: preserve cache_bottomDerrick Stolee via GitGitGadget, Jun 7, 2021
  107. 14/14 fsmonitor: integrate with sparse indexDerrick Stolee via GitGitGadget, Jun 7, 2021
  108. 02/14 sparse-index: include EXTENDED flag when expandingDerrick Stolee via GitGitGadget, Jun 7, 2021
  109. Elijah NewrenJun 8, 2021
  110. Derrick StoleeJun 9, 2021
  111. Elijah NewrenJun 9, 2021
  112. 04/14 t1092: expand repository data shapeDerrick Stolee via GitGitGadget, Jun 7, 2021
  113. 10/14 diff-lib: handle index diffs with sparse dirsDerrick Stolee via GitGitGadget, Jun 7, 2021
  114. Derrick StoleeJun 7, 2021
  115. Junio C HamanoJun 8, 2021
  116. Derrick StoleeJun 8, 2021
  117. Elijah NewrenJun 9, 2021
  118. Junio C HamanoJun 9, 2021
  119. Elijah NewrenJun 9, 2021
  120. Derrick StoleeJun 9, 2021
  121. Derrick StoleeJun 10, 2021
  122. Elijah NewrenJun 10, 2021
  123. Derrick StoleeJun 11, 2021
  124. Derrick StoleeJun 11, 2021
  125. 13/14 wt-status: expand added sparse directory entriesDerrick Stolee via GitGitGadget, Jun 7, 2021
  126. Elijah NewrenJun 9, 2021
  127. Derrick StoleeJun 9, 2021
  128. 00/14 Sparse-index: integrate with statusDerrick Stolee via GitGitGadget, Jun 29, 2021
  129. 01/14 sparse-index: skip indexes with unmerged entriesDerrick Stolee via GitGitGadget, Jun 29, 2021
  130. 02/14 sparse-index: include EXTENDED flag when expandingDerrick Stolee via GitGitGadget, Jun 29, 2021
  131. 03/14 t1092: replace incorrect 'echo' with 'cat'Derrick Stolee via GitGitGadget, Jun 29, 2021
  132. 04/14 t1092: expand repository data shapeDerrick Stolee via GitGitGadget, Jun 29, 2021
  133. 05/14 t1092: add tests for status/add and sparse filesDerrick Stolee via GitGitGadget, Jun 29, 2021
  134. 07/14 unpack-trees: compare sparse directories correctlyDerrick Stolee via GitGitGadget, Jun 29, 2021
  135. 06/14 unpack-trees: preserve cache_bottomDerrick Stolee via GitGitGadget, Jun 29, 2021
  136. 08/14 unpack-trees: unpack sparse directory entriesDerrick Stolee via GitGitGadget, Jun 29, 2021
  137. 09/14 dir.c: accept a directory as part of cone-mode patternsDerrick Stolee via GitGitGadget, Jun 29, 2021
  138. 10/14 diff-lib: handle index diffs with sparse dirsDerrick Stolee via GitGitGadget, Jun 29, 2021
  139. 11/14 status: skip sparse-checkout percentage with sparse-indexDerrick Stolee via GitGitGadget, Jun 29, 2021
  140. 13/14 wt-status: expand added sparse directory entriesDerrick Stolee via GitGitGadget, Jun 29, 2021
  141. 12/14 status: use sparse-index throughoutDerrick Stolee via GitGitGadget, Jun 29, 2021
  142. 14/14 fsmonitor: integrate with sparse indexDerrick Stolee via GitGitGadget, Jun 29, 2021
  143. Derrick StoleeJun 29, 2021
  144. 00/16 Sparse-index: integrate with statusDerrick Stolee via GitGitGadget, Jun 29, 2021
  145. 01/16 sparse-index: skip indexes with unmerged entriesDerrick Stolee via GitGitGadget, Jun 29, 2021
  146. 02/16 sparse-index: include EXTENDED flag when expandingDerrick Stolee via GitGitGadget, Jun 29, 2021
  147. 03/16 t1092: replace incorrect 'echo' with 'cat'Derrick Stolee via GitGitGadget, Jun 29, 2021
  148. 04/16 t1092: expand repository data shapeDerrick Stolee via GitGitGadget, Jun 29, 2021
  149. 06/16 unpack-trees: preserve cache_bottomDerrick Stolee via GitGitGadget, Jun 29, 2021
  150. 05/16 t1092: add tests for status/add and sparse filesDerrick Stolee via GitGitGadget, Jun 29, 2021
  151. 08/16 unpack-trees: rename unpack_nondirectories()Derrick Stolee via GitGitGadget, Jun 29, 2021
  152. 07/16 unpack-trees: compare sparse directories correctlyDerrick Stolee via GitGitGadget, Jun 29, 2021
  153. 09/16 unpack-trees: unpack sparse directory entriesDerrick Stolee via GitGitGadget, Jun 29, 2021
  154. Elijah NewrenJul 7, 2021
  155. 11/16 dir.c: accept a directory as part of cone-mode patternsDerrick Stolee via GitGitGadget, Jun 29, 2021
  156. 10/16 unpack-trees: handle dir/file conflict of sparse entriesDerrick Stolee via GitGitGadget, Jun 29, 2021
  157. Elijah NewrenJul 7, 2021
  158. Elijah NewrenJul 9, 2021
  159. Derrick StoleeJul 12, 2021
  160. 12/16 diff-lib: handle index diffs with sparse dirsDerrick Stolee via GitGitGadget, Jun 29, 2021
  161. Elijah NewrenJul 8, 2021
  162. Elijah NewrenJul 8, 2021
  163. Derrick StoleeJul 12, 2021
  164. 13/16 status: skip sparse-checkout percentage with sparse-indexDerrick Stolee via GitGitGadget, Jun 29, 2021
  165. 15/16 wt-status: expand added sparse directory entriesDerrick Stolee via GitGitGadget, Jun 29, 2021
  166. Elijah NewrenJul 9, 2021
  167. Derrick StoleeJul 12, 2021
  168. Elijah NewrenJul 12, 2021
  169. Derrick StoleeJul 12, 2021
  170. 16/16 fsmonitor: integrate with sparse indexDerrick Stolee via GitGitGadget, Jun 29, 2021
  171. 14/16 status: use sparse-index throughoutDerrick Stolee via GitGitGadget, Jun 29, 2021
  172. Derrick StoleeJun 29, 2021
  173. Elijah NewrenJun 30, 2021
  174. Elijah NewrenJul 9, 2021
  175. Derrick StoleeJul 12, 2021
  176. 00/15 Sparse-index: integrate with statusDerrick Stolee via GitGitGadget, Jul 12, 2021
  177. 01/15 sparse-index: skip indexes with unmerged entriesDerrick Stolee via GitGitGadget, Jul 12, 2021
  178. 02/15 sparse-index: include EXTENDED flag when expandingDerrick Stolee via GitGitGadget, Jul 12, 2021
  179. 03/15 t1092: replace incorrect 'echo' with 'cat'Derrick Stolee via GitGitGadget, Jul 12, 2021
  180. Bagas SanjayaJul 14, 2021
  181. 04/15 t1092: expand repository data shapeDerrick Stolee via GitGitGadget, Jul 12, 2021
  182. 05/15 t1092: add tests for status/add and sparse filesDerrick Stolee via GitGitGadget, Jul 12, 2021
  183. 07/15 unpack-trees: compare sparse directories correctlyDerrick Stolee via GitGitGadget, Jul 12, 2021
  184. 06/15 unpack-trees: preserve cache_bottomDerrick Stolee via GitGitGadget, Jul 12, 2021
  185. 08/15 unpack-trees: rename unpack_nondirectories()Derrick Stolee via GitGitGadget, Jul 12, 2021
  186. 09/15 unpack-trees: unpack sparse directory entriesDerrick Stolee via GitGitGadget, Jul 12, 2021
  187. 10/15 dir.c: accept a directory as part of cone-mode patternsDerrick Stolee via GitGitGadget, Jul 12, 2021
  188. 12/15 status: skip sparse-checkout percentage with sparse-indexDerrick Stolee via GitGitGadget, Jul 12, 2021
  189. 14/15 wt-status: expand added sparse directory entriesDerrick Stolee via GitGitGadget, Jul 12, 2021
  190. 15/15 fsmonitor: integrate with sparse indexDerrick Stolee via GitGitGadget, Jul 12, 2021
  191. 11/15 diff-lib: handle index diffs with sparse dirsDerrick Stolee via GitGitGadget, Jul 12, 2021
  192. 13/15 status: use sparse-index throughoutDerrick Stolee via GitGitGadget, Jul 12, 2021
  193. Elijah NewrenJul 12, 2021
  194. Derrick StoleeJul 13, 2021
  195. Elijah NewrenJul 13, 2021
  196. 00/16 Sparse-index: integrate with statusDerrick Stolee via GitGitGadget, Jul 14, 2021
  197. 01/16 sparse-index: skip indexes with unmerged entriesDerrick Stolee via GitGitGadget, Jul 14, 2021
  198. 02/16 sparse-index: include EXTENDED flag when expandingDerrick Stolee via GitGitGadget, Jul 14, 2021
  199. 03/16 t1092: replace incorrect 'echo' with 'cat'Derrick Stolee via GitGitGadget, Jul 14, 2021
  200. 05/16 t1092: add tests for status/add and sparse filesDerrick Stolee via GitGitGadget, Jul 14, 2021
  201. 04/16 t1092: expand repository data shapeDerrick Stolee via GitGitGadget, Jul 14, 2021
  202. 06/16 unpack-trees: preserve cache_bottomDerrick Stolee via GitGitGadget, Jul 14, 2021
  203. 07/16 unpack-trees: compare sparse directories correctlyDerrick Stolee via GitGitGadget, Jul 14, 2021
  204. 08/16 unpack-trees: rename unpack_nondirectories()Derrick Stolee via GitGitGadget, Jul 14, 2021
  205. 09/16 unpack-trees: unpack sparse directory entriesDerrick Stolee via GitGitGadget, Jul 14, 2021
  206. 13/16 status: use sparse-index throughoutDerrick Stolee via GitGitGadget, Jul 14, 2021
  207. 14/16 wt-status: expand added sparse directory entriesDerrick Stolee via GitGitGadget, Jul 14, 2021
  208. 11/16 diff-lib: handle index diffs with sparse dirsDerrick Stolee via GitGitGadget, Jul 14, 2021
  209. 10/16 dir.c: accept a directory as part of cone-mode patternsDerrick Stolee via GitGitGadget, Jul 14, 2021
  210. 12/16 status: skip sparse-checkout percentage with sparse-indexDerrick Stolee via GitGitGadget, Jul 14, 2021
  211. 15/16 fsmonitor: integrate with sparse indexDerrick Stolee via GitGitGadget, Jul 14, 2021
  212. 16/16 t1092: document bad sparse-checkout behaviorDerrick Stolee via GitGitGadget, Jul 14, 2021
  213. Elijah NewrenJul 14, 2021
  214. Junio C HamanoJul 14, 2021
  215. Elijah NewrenJul 15, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.