chlog: default the history cap to 50
CI / build (push) Successful in 1m42s
CI / test (push) Skipped
CI / publish (push) Skipped
CI / snap (push) Successful in 2m43s
CI / release (push) Skipped

An entry listing 500 commits is not a useful draft, and 50 keeps the
default window small enough that even the first run on a kernel-sized
tree stays instant. --limit still takes any value, 0 for unlimited.
This commit is contained in:
vhaudiquet authored and Valentin Haudiquet committed 2026-11-24 20:58:34 +01:00
1 parent 0a24db28bc
commit 8e6035c185
2 files changed
+4 -7

No files matched your search

+2 -2
View File
@@ -118,9 +118,9 @@ with `--file <path>` (`-f`).
`pkh chlog` walks the commit history back to the previous changelog entry.
That walk, and the list of commits the entry is built from, are capped at
500 commits (`--limit <n>`, `0` = unlimited): a boundary far behind HEAD —
50 commits (`--limit <n>`, `0` = unlimited): a boundary far behind HEAD —
a stale version tag in a kernel-sized history — truncates the entry to the
newest 500 commits instead of crawling the whole range, which keeps the
newest 50 commits instead of crawling the whole range, which keeps the
run fast on large histories.
### Incremental builds (build records)