X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=Documentation%2Fgit-cat-file.txt;h=a3f56b07fd251cbd121c28189d1f9018b892b48e;hb=ea56a7ed971f3bd547abb16a3cb9a41c00133c85;hp=58c8d65772af4ef20ad573af9dd28691f5357437;hpb=fc4b10cd2dd4f23443d1c639b9c38a604fff3aa3;p=git.git diff --git a/Documentation/git-cat-file.txt b/Documentation/git-cat-file.txt index 58c8d6577..a3f56b07f 100644 --- a/Documentation/git-cat-file.txt +++ b/Documentation/git-cat-file.txt @@ -9,14 +9,15 @@ git-cat-file - Provide content or type and size information for repository objec SYNOPSIS -------- [verse] -'git cat-file' (-t | -s | -e | -p | ) +'git cat-file' (-t | -s | -e | -p | | --textconv ) 'git cat-file' (--batch | --batch-check) < DESCRIPTION ----------- In its first form, the command provides the content or the type of an object in the repository. The type is required unless '-t' or '-p' is used to find the -object type, or '-s' is used to find the object size. +object type, or '-s' is used to find the object size, or '--textconv' is used +(which implies type "blob"). In the second form, a list of objects (separated by linefeeds) is provided on stdin, and the SHA1, type, and size of each object is printed on stdout. @@ -26,7 +27,7 @@ OPTIONS :: The name of the object to show. For a more complete list of ways to spell object names, see - the "SPECIFYING REVISIONS" section in linkgit:git-rev-parse[1]. + the "SPECIFYING REVISIONS" section in linkgit:gitrevisions[1]. -t:: Instead of the content, show the object type identified by @@ -51,6 +52,11 @@ OPTIONS or to ask for a "blob" with being a tag object that points at it. +--textconv:: + Show the content as transformed by a textconv filter. In this case, + has be of the form :, or : in order + to apply the filter to the content recorded in the index at . + --batch:: Print the SHA1, type, size, and contents of each object provided on stdin. May not be combined with any other options or arguments.