Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/hook-skips-when-index-not-tracked.md

This file was deleted.

6 changes: 6 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @zettelgeist/cli

## 0.4.2

### Patch Changes

- [#17](https://github.com/morrieinmaas/zettelgeist/pull/17) [`95a7adc`](https://github.com/morrieinmaas/zettelgeist/commit/95a7adc18e38d63fbc8de3cef3c95f2fa869b167) Thanks [@morrieinmaas](https://github.com/morrieinmaas)! - Pre-commit hook now also self-disables on branches where `specs/INDEX.md` is not part of the branch's git history. Before this, a back-in-time checkout (or a fresh `zettelgeist init` before the first `regen`) blocked every commit with `error: specs/INDEX.md is missing` because the hook's `regen --check` had nothing to compare against. The hook now performs a `git ls-files --error-unmatch specs/INDEX.md` pre-flight: if the index file isn't tracked on this branch, there's nothing to be stale about and the hook exits 0. Re-run `zettelgeist install-hook` to update existing hooks. The full pre-commit flow now also has end-to-end test coverage in `@zettelgeist/git-hook`'s test suite, regression-guarding both this bug and the earlier non-zg-repo bug.

## 0.4.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zettelgeist/cli",
"version": "0.4.1",
"version": "0.4.2",
"license": "Apache-2.0",
"author": "Mo <motechnix@gmail.com>",
"description": "Zettelgeist CLI: regen, validate, install-hook, serve, export-doc commands.",
Expand Down