@@ -3,34 +3,32 @@ git-cat-file(1)
3
3
4
4
NAME
5
5
----
6
- git-cat-file - Provide content or type and size information for repository objects
7
-
6
+ git-cat-file - Provide contents or details of repository objects
8
7
9
8
SYNOPSIS
10
9
--------
11
10
[verse]
12
11
'git cat-file' <type> <object>
13
12
'git cat-file' (-e | -p) <object>
14
13
'git cat-file' (-t | -s) [--allow-unknown-type] <object>
14
+ 'git cat-file' (--textconv | --filters)
15
+ [<rev>:<path|tree-ish> | --path=<path|tree-ish> <rev>]
15
16
'git cat-file' (--batch | --batch-check | --batch-command) [--batch-all-objects]
16
17
[--buffer] [--follow-symlinks] [--unordered]
17
18
[--textconv | --filters] [-Z]
18
- 'git cat-file' (--textconv | --filters)
19
- [<rev>:<path|tree-ish> | --path=<path|tree-ish> <rev>]
20
19
21
20
DESCRIPTION
22
21
-----------
23
- In its first form, the command provides the content or the type of an object in
24
- the repository. The type is required unless `-t` or `-p` is used to find the
25
- object type, or `-s` is used to find the object size, or `--textconv` or
26
- `--filters` is used (which imply type "blob").
27
-
28
- In the second form, a list of objects (separated by linefeeds) is provided on
29
- stdin, and the SHA-1, type, and size of each object is printed on stdout. The
30
- output format can be overridden using the optional `<format>` argument. If
31
- either `--textconv` or `--filters` was specified, the input is expected to
32
- list the object names followed by the path name, separated by a single
33
- whitespace, so that the appropriate drivers can be determined.
22
+ Output the contents or other properties such as size, type or delta
23
+ information of one or more objects.
24
+
25
+ This command can operate in two modes, depending on whether an option
26
+ from the `--batch` family is specified.
27
+
28
+ In non-batch mode, the command provides information on an object
29
+ named on the command line.
30
+
31
+ In batch mode, arguments are read from standard input.
34
32
35
33
OPTIONS
36
34
-------
@@ -51,8 +49,8 @@ OPTIONS
51
49
52
50
-e::
53
51
Exit with zero status if `<object>` exists and is a valid
54
- object. If `<object>` is of an invalid format exit with non-zero and
55
- emits an error on stderr.
52
+ object. If `<object>` is of an invalid format, exit with non-zero
53
+ status and emit an error on stderr.
56
54
57
55
-p::
58
56
Pretty-print the contents of `<object>` based on its type.
0 commit comments