Thread (2 messages) flat view 2 messages, 2 authors, 2021-01-27

git stash push --patch offers skip-worktree hunks

From: Daniel Lublin <hidden>
Date: 2021-01-27 08:23:18

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help