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

[PATCH v5 08/14] unpack-trees: unpack sparse directory entries

From
Derrick Stolee via GitGitGadget <gitgitgadget@gmail.com>
Date
Jun 7, 2021, 12:34 UTC
Message-ID
<724194eef9f6d5514bcd7761daf0eb2bb87c0619.1623069252.git.gitgitgadget@gmail.com>
In-Reply-To
<pull.932.v5.git.1623069252.gitgitgadget@gmail.com>
From: Derrick Stolee <dstolee@microsoft.com>

During unpack_callback(), index entries are compared against tree entries. These are matched according to names and types. One goal is to decide if we should recurse into subtrees or simply operate on one index entry.

In the case of a sparse-directory entry, we do not want to recurse into that subtree and instead simply compare the trees. In some cases, we might want to perform a merge operation on the entry, such as during 'git checkout <commit>' which wants to replace a sparse tree entry with the tree for that path at the target commit. We extend the logic within unpack_nondirectories() to create a sparse-directory entry in this case, and then that is sent to call_unpack_fn().

There are some subtleties in this process. For instance, we need to update find_cache_entry() to allow finding a sparse-directory entry that exactly matches a given path.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
---
 unpack-trees.c | 101 ++++++++++++++++++++++++++++++++++++++++++++-----
 1 file changed, 91 insertions(+), 10 deletions(-)
diff --git a/unpack-trees.c b/unpack-trees.c
index ef6a2b1c951c..ff448ee8424e 100644
--- a/unpack-trees.c
+++ b/unpack-trees.c
@@ -1037,13 +1037,15 @@ static struct cache_entry *create_ce_entry(const struct traverse_info *info,
 	const struct name_entry *n,
 	int stage,
 	struct index_state *istate,
-	int is_transient)
+	int is_transient,
+	int is_sparse_directory)
 {
 	size_t len = traverse_path_len(info, tree_entry_len(n));
+	size_t alloc_len = is_sparse_directory ? len + 1 : len;
 	struct cache_entry *ce =
 		is_transient ?
-		make_empty_transient_cache_entry(len) :
-		make_empty_cache_entry(istate, len);
+		make_empty_transient_cache_entry(alloc_len) :
+		make_empty_cache_entry(istate, alloc_len);
 
 	ce->ce_mode = create_ce_mode(n->mode);
 	ce->ce_flags = create_ce_flags(stage);
@@ -1052,6 +1054,13 @@ static struct cache_entry *create_ce_entry(const struct traverse_info *info,
 	/* len+1 because the cache_entry allocates space for NUL */
 	make_traverse_path(ce->name, len + 1, info, n->path, n->pathlen);
 
+	if (is_sparse_directory) {
+		ce->name[len] = '/';
+		ce->name[len + 1] = 0;
+		ce->ce_namelen++;
+		ce->ce_flags |= CE_SKIP_WORKTREE;
+	}
+
 	return ce;
 }
 
@@ -1064,16 +1073,24 @@ static int unpack_nondirectories(int n, unsigned long mask,
 				 unsigned long dirmask,
 				 struct cache_entry **src,
 				 const struct name_entry *names,
-				 const struct traverse_info *info)
+				 const struct traverse_info *info,
+				 int sparse_directory)
 {
 	int i;
 	struct unpack_trees_options *o = info->data;
 	unsigned long conflicts = info->df_conflicts | dirmask;
 
-	/* Do we have *only* directories? Nothing to do */
 	if (mask == dirmask && !src[0])
 		return 0;
 
+	/* no-op if our cache entry doesn't match the expectations. */
+	if (sparse_directory) {
+		if (src[0] && !S_ISSPARSEDIR(src[0]->ce_mode))
+			BUG("expected sparse directory entry");
+	} else if (src[0] && S_ISSPARSEDIR(src[0]->ce_mode)) {
+		return 0;
+	}
+
 	/*
 	 * Ok, we've filled in up to any potential index entry in src[0],
 	 * now do the rest.
@@ -1103,7 +1120,9 @@ static int unpack_nondirectories(int n, unsigned long mask,
 		 * not stored in the index.  otherwise construct the
 		 * cache entry from the index aware logic.
 		 */
-		src[i + o->merge] = create_ce_entry(info, names + i, stage, &o->result, o->merge);
+		src[i + o->merge] = create_ce_entry(info, names + i, stage,
+						    &o->result, o->merge,
+						    sparse_directory);
 	}
 
 	if (o->merge) {
@@ -1210,13 +1229,44 @@ static int find_cache_pos(struct traverse_info *info,
 static struct cache_entry *find_cache_entry(struct traverse_info *info,
 					    const struct name_entry *p)
 {
+	struct cache_entry *ce;
 	int pos = find_cache_pos(info, p->path, p->pathlen);
 	struct unpack_trees_options *o = info->data;
 
 	if (0 <= pos)
 		return o->src_index->cache[pos];
-	else
+
+	/*
+	 * Check for a sparse-directory entry named "path/".
+	 * Due to the input p->path not having a trailing
+	 * slash, the negative 'pos' value overshoots the
+	 * expected position by one, hence "-2" here.
+	 */
+	pos = -pos - 2;
+
+	if (pos < 0 || pos >= o->src_index->cache_nr)
+		return NULL;
+
+	ce = o->src_index->cache[pos];
+
+	if (!S_ISSPARSEDIR(ce->ce_mode))
 		return NULL;
+
+	/*
+	 * Compare ce->name to info->name + '/' + p->path + '/'
+	 * if info->name is non-empty. Compare ce->name to
+	 * p-.path + '/' otherwise.
+	 */
+	if (info->namelen) {
+		if (ce->ce_namelen == info->namelen + p->pathlen + 2 &&
+		    ce->name[info->namelen] == '/' &&
+		    !strncmp(ce->name, info->name, info->namelen) &&
+		    !strncmp(ce->name + info->namelen + 1, p->path, p->pathlen))
+			return ce;
+	} else if (ce->ce_namelen == p->pathlen + 1 &&
+		   !strncmp(ce->name, p->path, p->pathlen))
+		return ce;
+	return NULL;
 }
 
 static void debug_path(struct traverse_info *info)
@@ -1251,6 +1301,32 @@ static void debug_unpack_callback(int n,
 		debug_name_entry(i, names + i);
 }
 
+/*
+ * Returns true if and only if the given cache_entry is a
+ * sparse-directory entry that matches the given name_entry
+ * from the tree walk at the given traverse_info.
+ */
+static int is_sparse_directory_entry(struct cache_entry *ce, struct name_entry *name, struct traverse_info *info)
+{
+	size_t expected_len, name_start;
+
+	if (!ce || !name || !S_ISSPARSEDIR(ce->ce_mode))
+		return 0;
+
+	if (info->namelen)
+		name_start = info->namelen + 1;
+	else
+		name_start = 0;
+	expected_len = name->pathlen + 1 + name_start;
+
+	if (ce->ce_namelen != expected_len ||
+	    strncmp(ce->name, info->name, info->namelen) ||
+	    strncmp(ce->name + name_start, name->path, name->pathlen))
+		return 0;
+
+	return 1;
+}
+
 /*
  * Note that traverse_by_cache_tree() duplicates some logic in this function
  * without actually calling it. If you change the logic here you may need to
@@ -1307,7 +1383,7 @@ static int unpack_callback(int n, unsigned long mask, unsigned long dirmask, str
 		}
 	}
 
-	if (unpack_nondirectories(n, mask, dirmask, src, names, info) < 0)
+	if (unpack_nondirectories(n, mask, dirmask, src, names, info, 0) < 0)
 		return -1;
 
 	if (o->merge && src[0]) {
@@ -1337,9 +1413,14 @@ static int unpack_callback(int n, unsigned long mask, unsigned long dirmask, str
 			}
 		}
 
-		if (traverse_trees_recursive(n, dirmask, mask & ~dirmask,
-					     names, info) < 0)
+		if (is_sparse_directory_entry(src[0], names, info)) {
+			if (unpack_nondirectories(n, dirmask, mask & ~dirmask, src, names, info, 1) < 0)
+				return -1;
+		} else if (traverse_trees_recursive(n, dirmask, mask & ~dirmask,
+						    names, info) < 0) {
 			return -1;
+		}
+
 		return mask;
 	}
 
-- 
gitgitgadget
Previous: Derrick Stolee via GitGitGadgetNext: Elijah Newren
Message 98 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.