{"thread":{"id":"42639","subject":"Fwd: Stash and Stash Pop Exit Codes","startedAt":"2016-06-17T16:06:31Z","lastAt":"2016-06-17T16:06:31Z","messageCount":1,"participants":["Alex"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"289450","messageId":"CALuTVP4BADSC2MBXabLCajAAai8GUE5zusvT++toftGCsLQeeQ@mail.gmail.com","threadId":"42639","inReplyTo":"CALuTVP62fr4+r-df8QnMiD30MUoimTrCbiwpp8AQ6qzVwDPEkA@mail.gmail.com","subject":"Fwd: Stash and Stash Pop Exit Codes","fromName":"Alex","fromEmail":"alexr@mtu.edu","sentAt":"2016-06-17T16:06:05Z","receivedAt":"2016-06-17T16:06:31Z","isPatch":false,"sender":{"key":"alexr@mtu.edu","avatar":null},"body":"I was wondering why git stash exits with a 0 code when it can't stash\nanything and why git stash pop exits nonzero when it can't stash pop\nanything. I was trying to script something and wanted to check if\nanything was stashed before stash popping.\n"}]}