X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=Documentation%2Fgit-cat-file.txt;h=504eb1b16a59c5af43fa1206723dece9207ee0eb;hb=5edbcd8d778d81254d2c8a4229c76c6fa7880407;hp=f21a6e06aa2ca762ad3ae20d756c569f4210652e;hpb=f73ae1fc5d5308fecf0a4bdbd7312f7f5b00df55;p=git.git diff --git a/Documentation/git-cat-file.txt b/Documentation/git-cat-file.txt index f21a6e06..504eb1b1 100644 --- a/Documentation/git-cat-file.txt +++ b/Documentation/git-cat-file.txt @@ -1,6 +1,5 @@ git-cat-file(1) =============== -v0.1, May 2005 NAME ---- @@ -9,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 ----------- @@ -30,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 @@ -40,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.