Re: Why can't I stash submodule changes?

2015-04-06 Thread Jens Lehmann
Am 06.04.2015 um 04:15 schrieb Shane da Silva: I’m having trouble understanding why I cannot stash changes to a submodule. When adding a submodule to a repository (`git submodule add ./sub-repo`), I can then run `git stash` and `git stash pop` with expected results—the submodule disappears and

Re: Why can't I stash submodule changes?

2015-04-06 Thread Shane da Silva
Thanks for your responses, all. Jens: yes, only the index is updated by the stash. The subdirectory remains and won't be removed (you will actually receive a warning about `git` not being able to remove it). I think the core of my misunderstanding is I was used to the idea that when `git status`

Re: Why can't I stash submodule changes?

2015-04-06 Thread Phillip Susi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 4/5/2015 10:15 PM, Shane da Silva wrote: I’m trying to wrap my head around why this is the current behavior, as I suspect this is intentional but it seems unexpected. If anyone can shed any light on this, I would really appreciate it! Why would

Why can't I stash submodule changes?

2015-04-05 Thread Shane da Silva
I’m having trouble understanding why I cannot stash changes to a submodule. When adding a submodule to a repository (`git submodule add ./sub-repo`), I can then run `git stash` and `git stash pop` with expected results—the submodule disappears and reappears in the working tree. However, when I