threads / bug / 59563

BUG: Inconsistent behavior for `git stash push`

Subject: BUG: Inconsistent behavior for `git stash push`

## tl;dr

One message between Apr 7, 2023 and Apr 7, 2023.

replies: 0people: 1as markdown or json

Eugen Konkov· Apr 7, 2023, 22:13 UTC · lore
Hello,
I found this issue with inconsistent exit codes.

Expected 'false' return code when I trying to stash staged changes when *they does not exists*: $ git stash push -S && echo "YES" No staged changes

Unexpected 'true' return code when I trying to stash changes when *they does not exists*: $ git stash && echo "YES" No local changes to save YES

I expect that "YES" here should not be printed.

Could it be possible to return 'false' exit code for second case? Thank you.

-- 
Best regards,
Eugen Konkov

← back to recent threads