Jo
6dda4aa9f6
Do not dim the hook output ( #1126 )
...
* Do not dim the hook output
* Update snapshots
2025-11-20 19:16:55 +08:00
Jo
1032757a83
Add a hint to use --refresh when no configuration found ( #1046 )
2025-11-08 18:45:51 +08:00
Jo
2a77fd57a5
Add a hint to install when running inside a sub-project ( #1045 )
...
* Add a hint to install when running inside a sub-project
* Fix snap
2025-11-07 18:28:56 +08:00
Copilot
011a0b3ff1
Rename crate lib/constants to crates/prek-consts and rename lib to crates ( #1026 )
...
* Initial plan
* Rename crate lib/constants to lib/prek-consts and fix all references
Co-authored-by: j178 <10510431+j178@users.noreply.github.com >
* Rename lib directory to crates and update all references
Co-authored-by: j178 <10510431+j178@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: j178 <10510431+j178@users.noreply.github.com >
2025-11-03 23:16:58 +08:00
Jo
442d88d7d7
Use relative path with --cd in the generated hook script ( #868 )
...
* Use relative path with `--cd` in generated hook script
Use a relative path with `--cd` in the generated hook script to avoid switching to the original worktree.
Also, unset `GIT_DIR` in the hook script so git doesn’t treat the current directory (after the cd) as the git root.
* Fix snapshots
* Add tests
2025-10-13 21:42:02 +08:00
Luiz Otavio Vilas Boas Oliveira
74cb495dea
Implement prek try-repo ( #797 )
...
* Add try_repo logic and tests (WIP)
* Remove unnecessary mut
* Fix clippy issues
* Add unit test
* Update snapshots
* Update docs
* Update unit test
* WIP
* Update snapshots
* Lint
* Add extra filters to try_repo tests
* Lint
* Update unit tests
* Apply Josh's suggestions
* Fix arg name
* .
* Fix
* Fix
* Generate
* Fix snapshot
* Improve coverage
---------
Co-authored-by: Jo <10510431+j178@users.noreply.github.com >
2025-10-10 21:11:31 +08:00
Jo
7a17c4b677
Improve install message when installing for a sub-project ( #847 )
...
* Improve install message when installing for a sub-project
* Fix tests
2025-10-07 16:47:42 +08:00
Jo
4c0eb8337c
Remove some unused code ( #763 )
2025-09-19 23:54:13 +08:00
Jo
6e6374dd13
Fix hook-impl don't run hooks when specified allow missing config ( #716 )
...
Closes #715
2025-09-11 16:46:07 +08:00
Jo
736768b4f6
Support selectors in prek install/install-hooks/hook-impl ( #683 )
...
* .
* Support selectors in `prek install`
* Support `prek install-hooks` too
* Add tests
2025-09-09 23:39:41 +08:00
Jo
f6034483a5
Fix hook-impl allow missing config ( #600 )
2025-09-06 16:44:22 +08:00
Jo
055e493fac
Support prek install|install-hooks|hook-impl|init-template-dir in workspace mode ( #595 )
...
* Support `prek install|install-hooks|hook-impl|init-template-dir` in workspace mode
* Fix
* Fix windows
# Conflicts:
# src/cli/hook_impl.rs
# tests/hook_impl.rs
# Conflicts:
# src/cli/install.rs
2025-09-06 16:44:22 +08:00
Jo
70261e9bf6
Implement pre-push hook type ( #598 )
...
* Implement `pre-push` hook type
* Skip if nothing to push
* Improve test
2025-09-02 02:40:07 +08:00
Jo
3f1f9e1056
Various fixes to init-templdate-dir and directory related bug ( #484 )
...
* various fixes
* Fix tests
* Fix
2025-08-18 14:30:18 +08:00
Jo
23f865819a
Rename project to prek from prefligit ( #402 )
2025-08-08 23:12:20 +08:00
Jo
1c034a1afb
Ignore config not staged error for config outside the repo ( #270 )
...
* Use `sync_all` over `flush`
* Ignore config not staged for config outside the repo
* improve test
2025-07-29 09:56:09 +08:00
Jo
8dfb3101ff
Rename project name to prefligit ( #118 )
...
* Rename project to `prefligit`
* Bump to 0.0.6
* Fix tests
* Add a rename note
2024-12-03 13:20:00 +08:00
Jo
3113e8400a
Improve tests ( #106 )
...
* Improve tests
* Fix
2024-11-23 21:34:48 +08:00
Jo
51448afc3b
Use local hook in tests ( #86 )
2024-11-21 11:45:41 +08:00
Jo
08dc3893aa
Add two helper functions to TestContext ( #84 )
...
* Add two helper functions to TestContext
* fix
2024-11-20 18:19:30 +08:00
Jo
f46c52c3a9
Improve hook output display ( #79 )
...
* Improve hook output display
and reduce axoupdater features
* Fix test
2024-11-18 17:50:29 +08:00
Jo
2aec6f0c90
Fix stage operate_on_files ( #65 )
2024-11-14 18:26:23 +08:00
Jo
b087883dd9
Implement basic pre-commit hook-impl ( #63 )
...
* Initial commit
* Implement `pre-commit hook-impl`
* fix test
* Fix test
2024-11-14 17:30:53 +08:00