git/list[1] front-page[2] threads[3] people[4] search[5] about
 

BUG: Inconsistent behavior for `git stash push`

From
EKEugen Konkov <kes-kes@yandex.ru>
Date
Apr 7, 2023, 22:13 UTC
Message-ID
<486910214.20230407181333@yandex.ru>
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
Message 1 of 1 in “BUG: Inconsistent behavior for `git stash push`”
  1. Eugen KonkovApr 7, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.