X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=Documentation%2Fgit-cat-file.txt;h=9a7700fa7fae68292dde2e6aa253bcaaebc1793b;hb=b3f041fb0f7de167dbb6711b0a231d36c4b5de08;hp=ab4dcae21caa190a41c19ec24b4dc2d71a5a73fb;hpb=98438bd0e893c23186fb82ea8b04964c0f1ef9d1;p=git.git diff --git a/Documentation/git-cat-file.txt b/Documentation/git-cat-file.txt index ab4dcae2..9a7700fa 100644 --- a/Documentation/git-cat-file.txt +++ b/Documentation/git-cat-file.txt @@ -8,7 +8,7 @@ git-cat-file - Provide content or type information for repository objects SYNOPSIS -------- -'git-cat-file' (-t | -s | ) +'git-cat-file' (-t | -s | -e | ) DESCRIPTION ----------- @@ -29,6 +29,10 @@ OPTIONS Instead of the content, show the object size identified by . +-e:: + Suppress all output; instead exit with zero status if + exists and is a valid object. + :: Typically this matches the real type of but asking for a type that can trivially be dereferenced from the given @@ -39,8 +43,11 @@ OPTIONS OUTPUT ------ -If '-t' is specified, one of the . If '-s' is specified, -the size of the in bytes. +If '-t' is specified, one of the . + +If '-s' is specified, the size of the in bytes. + +If '-e' is specified, no output. Otherwise the raw (though uncompressed) contents of the will be returned.