git stash push --patch offers skip-worktree hunks
- From
- Daniel Lublin <daniel@lublin.se>
- Date
- Jan 27, 2021, 08:23 UTC
- Message-ID
- <rur7en$16bk$1@ciao.gmane.io>
Hi,
I'm using this to hide some locally modified files from accidental commit:
git update-index --skip-worktree ...
Doing `git stash push` does not result in the above modifications being stashed. But, doing `git stash push --patch` asks me about hunks in the files which were flagged to skip-worktree. Instinctively, this feels wrong. The docs also say:
Interactively select hunks from the diff between HEAD and the working tree to be stashed.
What do you think?
regards,
-- Daniel lublin.se