Skip to content

Add shellfirm rules for git checkout -- . and git restore .#174

Merged
kaplanelad merged 1 commit into
mainfrom
add-checkout-restore-discard-rules
Mar 25, 2026
Merged

Add shellfirm rules for git checkout -- . and git restore .#174
kaplanelad merged 1 commit into
mainfrom
add-checkout-restore-discard-rules

Conversation

@kaplanelad

Copy link
Copy Markdown
Owner
  • Add git:checkout_discard_all rule to catch git checkout -- . and git checkout -- *
  • Add git:restore_discard_all rule to catch git restore ., git restore --staged ., and git restore *
  • Both rules allow specific file targets (e.g. git restore file.txt)
  • 22 new test cases covering positive and negative matches

@kaplanelad kaplanelad merged commit 8461a50 into main Mar 25, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant