git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git cat-file -e behavior
@ 2016-02-29  9:58 Michal Čihař
  2016-02-29 11:44 ` Jeff King
  0 siblings, 1 reply; 5+ messages in thread
From: Michal Čihař @ 2016-02-29  9:58 UTC (permalink / raw)
  To: git

[-- 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-02-29 12:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-29  9:58 git cat-file -e behavior Michal Čihař
2016-02-29 11:44 ` Jeff King
2016-02-29 12:16   ` Michal Čihař
2016-02-29 12:36     ` Jeff King
2016-02-29 12:40   ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).