# Fwd: Stash and Stash Pop Exit Codes

1 messages from 2016-06-17 to 2016-06-17. Participants: Alex.
Thread: https://gitlist.dev/t/42639

## Alex, 2016-06-17 16:06

Subject: Fwd: Stash and Stash Pop Exit Codes
Message-ID: <CALuTVP4BADSC2MBXabLCajAAai8GUE5zusvT++toftGCsLQeeQ@mail.gmail.com>
URL: https://gitlist.dev/e/CALuTVP4BADSC2MBXabLCajAAai8GUE5zusvT%2B%2BtoftGCsLQeeQ%40mail.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.

```
