{"thread":{"id":"53802","subject":"Exit status of git show-ref --verify","startedAt":"2020-07-06T18:55:40Z","lastAt":"2020-07-06T18:55:40Z","messageCount":1,"participants":["Marc Legendre"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"401049","messageId":"ggXIwBvE8oQXAL_579a2DJEsrEdPmMHoqEfSmQ31AlmZYRQ7AABmC-pMv1st9ljCXzfw__hnFbNvcBzEWbEfyr7mDSaFYuLv2NM03EDTlhk=@anatoscope.com","threadId":"53802","inReplyTo":null,"subject":"Exit status of git show-ref --verify","fromName":"Marc Legendre","fromEmail":"legendre@anatoscope.com","sentAt":"2020-07-06T18:55:35Z","receivedAt":"2020-07-06T18:55:40Z","isPatch":false,"sender":{"key":"legendre@anatoscope.com","avatar":null},"body":"Hi,\n\nI stumbled upon a small discrepancy between the documentation of git-show-ref\nand its actual behavior. The documentation of the `--verify` flag of\ngit-show-ref says:\n\n  \"If nothing matches, 'git show-ref' will return an error code of 1\"\n\nYet it seems to return 1 only if it is also called with --quiet. Tested with\nthe `next` branch:\n\n  [~/dev/git] $ ./git show-ref --verify refs/heads/tagada\n  fatal: 'refs/heads/tagada' - not a valid ref\n  [~/dev/git] $ echo $?\n  128\n\n  [~/dev/git] $ ./git show-ref --quiet --verify refs/heads/tagada\n  [~/dev/git] $ echo $?\n  1\n\n\nRegards,\nMarc Legendre\n\n"}]}