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.
threads / discuss / 42639
Fwd: Stash and Stash Pop Exit Codes
Subject: Fwd: Stash and Stash Pop Exit Codes