diff options
| author | Junio C Hamano <gitster@pobox.com> | 2022-06-03 14:30:35 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-06-03 14:30:35 -0700 |
| commit | c276c21da6d055060b1c216de1b1c04fb058425f (patch) | |
| tree | 6db5f39ef5a4b55adbd3401db6fc63fe25b7694e /cache-tree.h | |
| parent | 091680472db4ab4604e79259233040a8d5762c06 (diff) | |
| parent | 598b1e7d0982fd71a25d861dccc1d580ef14ac90 (diff) | |
| download | git-c276c21da6d055060b1c216de1b1c04fb058425f.tar.gz | |
Merge branch 'ds/sparse-sparse-checkout'
"sparse-checkout" learns to work well with the sparse-index
feature.
* ds/sparse-sparse-checkout:
sparse-checkout: integrate with sparse index
p2000: add test for 'git sparse-checkout [add|set]'
sparse-index: complete partial expansion
sparse-index: partially expand directories
sparse-checkout: --no-sparse-index needs a full index
cache-tree: implement cache_tree_find_path()
sparse-index: introduce partially-sparse indexes
sparse-index: create expand_index()
t1092: stress test 'git sparse-checkout set'
t1092: refactor 'sparse-index contents' test
Diffstat (limited to 'cache-tree.h')
| -rw-r--r-- | cache-tree.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cache-tree.h b/cache-tree.h index 8efeccebfc..f75f8e74dc 100644 --- a/cache-tree.h +++ b/cache-tree.h @@ -29,6 +29,8 @@ struct cache_tree_sub *cache_tree_sub(struct cache_tree *, const char *); int cache_tree_subtree_pos(struct cache_tree *it, const char *path, int pathlen); +struct cache_tree *cache_tree_find_path(struct cache_tree *it, const char *path); + void cache_tree_write(struct strbuf *, struct cache_tree *root); struct cache_tree *cache_tree_read(const char *buffer, unsigned long size); |
