Conditionally run hooks based on staged files #3
Labels
No Label
Browser: Chromium
Browser: Firefox
Bug Report
Completed
Crate: hooked-book
Documentation
Enhancement
Feature Request
Packaging
Progress Tracker
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Holllo/hooked#3
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A way to only run a hook when Git has certain files staged.
For example, only run
cargo test
when.rs
files have changed:To get Git's staged files:
Using globset this should be pretty easy to add.
Added to config in
da0e38e3bb
and CLI in651699c40a
.