diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-02-18 15:30:31 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-02-18 15:30:31 -0800 |
| commit | e565f3755342caf1d21e22359eaf09ec11d8c0ae (patch) | |
| tree | 5f72183ddfbef4150aabe189127d03248c0e8151 /dir.c | |
| parent | 03944513488db4a81fdb4c21c3b515e4cb260b05 (diff) | |
| parent | 85127bcdeab5ab34f9c738da3fcc88d637f39089 (diff) | |
| download | git-e565f3755342caf1d21e22359eaf09ec11d8c0ae.tar.xz | |
Merge branch 'ds/backfill'
Lazy-loading missing files in a blobless clone on demand is costly
as it tends to be one-blob-at-a-time. "git backfill" is introduced
to help bulk-download necessary files beforehand.
* ds/backfill:
backfill: assume --sparse when sparse-checkout is enabled
backfill: add --sparse option
backfill: add --min-batch-size=<n> option
backfill: basic functionality and tests
backfill: add builtin boilerplate
Diffstat (limited to 'dir.c')
| -rw-r--r-- | dir.c | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -1093,10 +1093,6 @@ static void invalidate_directory(struct untracked_cache *uc, dir->dirs[i]->recurse = 0; } -static int add_patterns_from_buffer(char *buf, size_t size, - const char *base, int baselen, - struct pattern_list *pl); - /* Flags for add_patterns() */ #define PATTERN_NOFOLLOW (1<<0) @@ -1186,9 +1182,9 @@ static int add_patterns(const char *fname, const char *base, int baselen, return 0; } -static int add_patterns_from_buffer(char *buf, size_t size, - const char *base, int baselen, - struct pattern_list *pl) +int add_patterns_from_buffer(char *buf, size_t size, + const char *base, int baselen, + struct pattern_list *pl) { char *orig = buf; int i, lineno = 1; |
