{"thread":{"id":"59563","subject":"BUG: Inconsistent behavior for `git stash push`","startedAt":"2023-04-07T22:13:42Z","lastAt":"2023-04-07T22:13:42Z","messageCount":1,"participants":["Eugen Konkov"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"475023","messageId":"486910214.20230407181333@yandex.ru","threadId":"59563","inReplyTo":null,"subject":"BUG: Inconsistent behavior for `git stash push`","fromName":"Eugen Konkov","fromEmail":"kes-kes@yandex.ru","sentAt":"2023-04-07T22:13:33Z","receivedAt":"2023-04-07T22:13:42Z","isPatch":false,"sender":{"key":"kes-kes@yandex.ru","avatar":null},"body":"Hello,\n\nI found this issue with inconsistent exit codes.\n\nExpected 'false' return code when I trying to stash staged changes when *they does not exists*:\n$ git stash push -S && echo \"YES\"\nNo staged changes\n\nUnexpected 'true' return code when I trying to stash changes when *they does not exists*:\n$ git stash && echo \"YES\"\nNo local changes to save\nYES\n\nI expect that \"YES\" here should not be printed.\n\nCould it be possible to return 'false' exit code for second case?\nThank you.\n\n-- \nBest regards,\nEugen Konkov\n\n"}]}