BUG: Inconsistent behavior for `git stash push`

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux