Skip to content

Commit 9f77fe0

Browse files
Michael J Grubergitster
authored andcommitted
git-cat-file.txt: Document --textconv
Signed-off-by: Michael J Gruber <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 34bb92e commit 9f77fe0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Documentation/git-cat-file.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ git-cat-file - Provide content or type and size information for repository objec
99
SYNOPSIS
1010
--------
1111
[verse]
12-
'git cat-file' (-t | -s | -e | -p | <type>) <object>
12+
'git cat-file' (-t | -s | -e | -p | <type> | --textconv ) <object>
1313
'git cat-file' (--batch | --batch-check) < <list-of-objects>
1414

1515
DESCRIPTION
1616
-----------
1717
In its first form, the command provides the content or the type of an object in
1818
the repository. The type is required unless '-t' or '-p' is used to find the
19-
object type, or '-s' is used to find the object size.
19+
object type, or '-s' is used to find the object size, or '--textconv' is used
20+
(which implies type "blob").
2021

2122
In the second form, a list of objects (separated by linefeeds) is provided on
2223
stdin, and the SHA1, type, and size of each object is printed on stdout.
@@ -51,6 +52,11 @@ OPTIONS
5152
or to ask for a "blob" with <object> being a tag object that
5253
points at it.
5354

55+
--textconv::
56+
Show the content as transformed by a textconv filter. In this case,
57+
<object> has be of the form <treeish>:<path>, or :<path> in order
58+
to apply the filter to the content recorded in the index at <path>.
59+
5460
--batch::
5561
Print the SHA1, type, size, and contents of each object provided on
5662
stdin. May not be combined with any other options or arguments.

0 commit comments

Comments
 (0)