From: "Michal Čihař" <michal@cihar.com>
To: git@vger.kernel.org
Subject: git cat-file -e behavior
Date: Mon, 29 Feb 2016 10:58:29 +0100 [thread overview]
Message-ID: <56D41645.4050800@cihar.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 529 bytes --]
Hi
the documentation for "git cat-file -e" says:
> Suppress all output; instead exit with zero status if <object> exists
and is a valid object.
However running it on non existing object will complain "fatal: Not a
valid object name".
$ git cat-file -e master:README.rst
$ echo $?
0
$ git cat-file -e master:foo
fatal: Not a valid object name master:foo
$ echo $?
128
Is the output in this case expected?
I'm currently running 2.7.0.
--
Michal Čihař | http://cihar.com | http://blog.cihar.com
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next reply other threads:[~2016-02-29 10:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-29 9:58 Michal Čihař [this message]
2016-02-29 11:44 ` git cat-file -e behavior Jeff King
2016-02-29 12:16 ` Michal Čihař
2016-02-29 12:36 ` Jeff King
2016-02-29 12:40 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56D41645.4050800@cihar.com \
--to=michal@cihar.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.