MicahElliott / captain

A simpler approach to git-hook management
Other
2 stars 0 forks source link

Auto-stash working dir #37

Open MicahElliott opened 4 months ago

MicahElliott commented 4 months ago

If a change isn't staged, it shouldn't be considered by the checkers.

magit does a neat temporary auto-stash when switching branches; capt should do that too.

https://stackoverflow.com/a/70309897/326516

git stash --keep-index --include-untracked --message="pre-commit auto-stash"