X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=Documentation%2Fgit-cat-file.txt;h=9a7700fa7fae68292dde2e6aa253bcaaebc1793b;hb=7b9b4c452c793d0f8e3ff9f0b7fe526448fc314a;hp=ab4dcae21caa190a41c19ec24b4dc2d71a5a73fb;hpb=2b2dabc29f53c5835868029585000ee487cf6cbb;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.