diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-02-12 10:08:53 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-02-12 10:08:53 -0800 |
| commit | 5b9d01bc4d84a1e09087a0b9dad206e855f49bf2 (patch) | |
| tree | beec49818ba34f8244b5e8c4d71b5b02cb08ccf6 /Documentation | |
| parent | a4af0b6288e25eb327ae9018cee09def9e43f1cd (diff) | |
| parent | 08032fa30fefa3101bec4b774e79f4d091b516a6 (diff) | |
| download | git-5b9d01bc4d84a1e09087a0b9dad206e855f49bf2.tar.xz | |
Merge branch 'zh/gc-expire-to'
"git gc" learned the "--expire-to" option and passes it down to
underlying "git repack".
* zh/gc-expire-to:
gc: add `--expire-to` option
Diffstat (limited to 'Documentation')
| -rw-r--r-- | Documentation/git-gc.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/git-gc.txt b/Documentation/git-gc.txt index 370e22faae..0eac8e85f0 100644 --- a/Documentation/git-gc.txt +++ b/Documentation/git-gc.txt @@ -69,6 +69,13 @@ be performed as well. the `--max-cruft-size` option of linkgit:git-repack[1] for more. +--expire-to=<dir>:: + When packing unreachable objects into a cruft pack, write a cruft + pack containing pruned objects (if any) to the directory `<dir>`. + This option only has an effect when used together with `--cruft`. + See the `--expire-to` option of linkgit:git-repack[1] for + more information. + --prune=<date>:: Prune loose objects older than date (default is 2 weeks ago, overridable by the config variable `gc.pruneExpire`). |
