A small patch release fixing two rough edges introduced with the v1.44.0 global-hooks work: post-commit and pre-rebase now have proper hk run subcommands, and HK_STASH_UNTRACKED=false finally skips the untracked-file scan (not just the stash), which makes hk usable on YADM-style dotfile repos where GIT_WORK_TREE is $HOME.
Fixed
-
hk run post-commitandhk run pre-rebaseare now first-class subcommands (@jdx) #858. Both events are written byhk install, but previously fell through to the genericotherhandler — so they didn't show up inhk run --helpand their arguments got mixed into the positional file collector, occasionally producing confusingUsage: hk run --from-ref <FROM_REF> [FILES]...errors duringgit rebase.pre-rebasenow has a typed<upstream> [branch]signature matching git's spec, andpost-commitis a proper no-args handler. -
HK_STASH_UNTRACKED=falsenow also skips the untracked scan ingit status(@jdx) #861. Before this, the flag only suppressed stashing — hk still rangit status --untracked-files=allon every invocation, which could take tens of seconds and emit hundreds of megabytes of output whenGIT_WORK_TREEpoints at a large directory like$HOME(as in YADM). Both the libgit2 and shell-git code paths now honor the setting, so large-worktree users can opt out of the scan entirely. Fixes #860.export HK_STASH_UNTRACKED=false hk check --all # no longer scans the entire worktree for untracked files
Documentation
- Getting-started docs now lead with
hk install --globalas the recommended setup path, since the--from-hookshort-circuit added in v1.44.0 makes it safe to enable once per machine (@jdx) #855. - Added a dismissible cross-site announcement banner to hk.jdx.dev, with an optional
expiresfield so banners auto-hide on their own (@jdx) #857, #862.
Full Changelog: v1.44.0...v1.44.1
💚 Sponsor hk
hk is developed by @jdx at en.dev — a small independent studio behind developer tools like mise, aube, hk, and more. Work on hk is funded by sponsorships.
If hk has sped up your pre-commit loop or made linting feel less painful, please consider sponsoring at en.dev. Sponsorships are what keep hk moving and the project independent.