cat-file: document -p option
Signed-off-by: Junio C Hamano <junkio@cox.net>
Jeff King committed
May 24, 2006 at 21:22 UTC
ed90cbf5f681c0144909457be3f4792b47604a5b
1 file changed
+7
-2
Documentation/git-cat-file.txt
+7
-2
@@ -8,12 +8,12 @@ git-cat-file - Provide content or type information for repository objects
8
9
SYNOPSIS
10
--------
11
-'git-cat-file' [-t | -s | -e | <type>] <object>
11
+'git-cat-file' [-t | -s | -e | -p | <type>] <object>
12
13
DESCRIPTION
14
-----------
15
Provides content or type of objects in the repository. The type
16
-is required unless '-t' is used to find the object type,
16
+is required unless '-t' or '-p' is used to find the object type,
17
or '-s' is used to find the object size.
18
19
OPTIONS
@@ -33,6 +33,9 @@ OPTIONS
33
Suppress all output; instead exit with zero status if <object>
34
exists and is a valid object.
35
36
+-p::
37
+ Pretty-print the contents of <object> based on its type.
38
+
39
<type>::
40
Typically this matches the real type of <object> but asking
41
for a type that can trivially be dereferenced from the given
@@ -49,6 +52,8 @@ If '-s' is specified, the size of the <object> in bytes.
52
53
If '-e' is specified, no output.
54
55
+If '-p' is specified, the contents of <object> are pretty-printed.
56
+
57
Otherwise the raw (though uncompressed) contents of the <object> will
58
be returned.
59