interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / Documentation / pack-refs-options.adoc

52 lines · 2178 bytes Raw Blame History
1`--all`::
2
3The command by default packs all tags and refs that are already
4packed, and leaves other refs
5alone. This is because branches are expected to be actively
6developed and packing their tips does not help performance.
7This option causes all refs to be packed as well, with the exception
8of hidden refs, broken refs, and symbolic refs. Useful for a repository
9with many branches of historical interests.
10
11`--no-prune`::
12
13The command usually removes loose refs under `$GIT_DIR/refs`
14hierarchy after packing them. This option tells it not to.
15
16`--auto`::
17
18Pack refs as needed depending on the current state of the ref database. The
19behavior depends on the ref format used by the repository and may change in the
20future.
21+
22 - "files": Loose references are packed into the `packed-refs` file
23 based on the ratio of loose references to the size of the
24 `packed-refs` file. The bigger the `packed-refs` file, the more loose
25 references need to exist before we repack.
26+
27 - "reftable": Tables are compacted such that they form a geometric
28 sequence. For two tables N and N+1, where N+1 is newer, this
29 maintains the property that N is at least twice as big as N+1. Only
30 tables that violate this property are compacted.
31
32`--include <pattern>`::
33
34Pack refs based on a `glob(7)` pattern. Repetitions of this option
35accumulate inclusion patterns. If a ref is both included in `--include` and
36`--exclude`, `--exclude` takes precedence. Using `--include` will preclude all
37tags from being included by default. Symbolic refs and broken refs will never
38be packed. When used with `--all`, it will be a noop. Use `--no-include` to clear
39and reset the list of patterns.
40
41`--exclude <pattern>`::
42
43Do not pack refs matching the given `glob(7)` pattern. Repetitions of this option
44accumulate exclusion patterns. Use `--no-exclude` to clear and reset the list of
45patterns. If a ref is already packed, including it with `--exclude` will not
46unpack it.
47+
48When used with `--all`, pack only loose refs which do not match any of
49the provided `--exclude` patterns.
50+
51When used with `--include`, refs provided to `--include`, minus refs that are
52provided to `--exclude` will be packed.