Merge branch 'ps/doc-pack-refs-auto-with-files-backend-fix'

Doc update.

* ps/doc-pack-refs-auto-with-files-backend-fix:
  docs/git-pack-refs: document heuristic used for packing loose refs
This commit is contained in:
Junio C Hamano
2025-07-16 09:42:28 -07:00

View File

@@ -66,7 +66,10 @@ Pack refs as needed depending on the current state of the ref database. The
behavior depends on the ref format used by the repository and may change in the behavior depends on the ref format used by the repository and may change in the
future. future.
+ +
- "files": No special handling for `--auto` has been implemented. - "files": Loose references are packed into the `packed-refs` file
based on the ratio of loose references to the size of the
`packed-refs` file. The bigger the `packed-refs` file, the more loose
references need to exist before we repack.
+ +
- "reftable": Tables are compacted such that they form a geometric - "reftable": Tables are compacted such that they form a geometric
sequence. For two tables N and N+1, where N+1 is newer, this sequence. For two tables N and N+1, where N+1 is newer, this