X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=Documentation%2Fgit-cat-file.txt;h=504eb1b16a59c5af43fa1206723dece9207ee0eb;hb=20fc9bc5e4fdd4b1f7fd98fbd2e91879f945d7e1;hp=ab4dcae21caa190a41c19ec24b4dc2d71a5a73fb;hpb=069b20a198f171512a1d2d2163b40f70c94f5257;p=git.git diff --git a/Documentation/git-cat-file.txt b/Documentation/git-cat-file.txt index ab4dcae2..504eb1b1 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.