You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After using lefthook for a while (works great! thanks!) I found that it's leaving behind a bunch of stashes. They clutter my Git porcelain:
Stashes (8)
stash@{0}: lefthook auto backup
stash@{1}: lefthook auto backup
stash@{2}: lefthook auto backup
stash@{3}: lefthook auto backup
stash@{4}: lefthook auto backup
stash@{5}: lefthook auto backup
stash@{6}: lefthook auto backup
stash@{7}: lefthook auto backup
It looks like these are stashes of unstaged changes that lefthook creates before running hooks:
Feature request: clean these up by default after lefthook is done, potentially making this configurable via .lefthookrc/lefthook.yml.
Value
The stashes aren't very useful because they don't contain a date or an indication of what they stashed, so I would just remove them. They can be created temporarily as lefthook runs as a backup, and only used if something goes wrong.
Behavior and configuration changes
See the summary above.
The text was updated successfully, but these errors were encountered:
⚡ Summary
After using
lefthook
for a while (works great! thanks!) I found that it's leaving behind a bunch of stashes. They clutter my Git porcelain:It looks like these are stashes of unstaged changes that
lefthook
creates before running hooks:lefthook/internal/git/repository.go
Lines 220 to 240 in c8ff4be
Feature request: clean these up by default after
lefthook
is done, potentially making this configurable via.lefthookrc
/lefthook.yml
.Value
The stashes aren't very useful because they don't contain a date or an indication of what they stashed, so I would just remove them. They can be created temporarily as
lefthook
runs as a backup, and only used if something goes wrong.Behavior and configuration changes
See the summary above.
The text was updated successfully, but these errors were encountered: