Fwd: Stash and Stash Pop Exit Codes
- From
- Alex <alexr@mtu.edu>
- Date
- Jun 17, 2016, 16:06 UTC
- Message-ID
- <CALuTVP4BADSC2MBXabLCajAAai8GUE5zusvT++toftGCsLQeeQ@mail.gmail.com>
- In-Reply-To
- <CALuTVP62fr4+r-df8QnMiD30MUoimTrCbiwpp8AQ6qzVwDPEkA@mail.gmail.com>
I was wondering why git stash exits with a 0 code when it can't stash anything and why git stash pop exits nonzero when it can't stash pop anything. I was trying to script something and wanted to check if anything was stashed before stash popping.