diff options
| author | Derrick Stolee <derrickstolee@github.com> | 2025-02-03 17:11:07 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-02-03 16:12:42 -0800 |
| commit | 85127bcdeab5ab34f9c738da3fcc88d637f39089 (patch) | |
| tree | 11171f7e8e765a7292c52ad93f17f6c6358fff68 /Documentation | |
| parent | bff455576750bd013a3c87b15cc7086cb8c1eab0 (diff) | |
| download | git-85127bcdeab5ab34f9c738da3fcc88d637f39089.tar.xz | |
backfill: assume --sparse when sparse-checkout is enabled
The previous change introduced the '--[no-]sparse' option for the 'git
backfill' command, but did not assume it as enabled by default. However,
this is likely the behavior that users will most often want to happen.
Without this default, users with a small sparse-checkout may be confused
when 'git backfill' downloads every version of every object in the full
history.
However, this is left as a separate change so this decision can be reviewed
independently of the value of the '--[no-]sparse' option.
Add a test of adding the '--sparse' option to a repo without sparse-checkout
to make it clear that supplying it without a sparse-checkout is an error.
Signed-off-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
| -rw-r--r-- | Documentation/git-backfill.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/git-backfill.txt b/Documentation/git-backfill.txt index a28678983e..95623051f7 100644 --- a/Documentation/git-backfill.txt +++ b/Documentation/git-backfill.txt @@ -59,7 +59,8 @@ OPTIONS `--[no-]sparse`:: Only download objects if they appear at a path that matches the - current sparse-checkout. + current sparse-checkout. If the sparse-checkout feature is enabled, + then `--sparse` is assumed and can be disabled with `--no-sparse`. SEE ALSO -------- |
