@@ -18,8 +18,15 @@ Many Git porcelainish commands take a mixture of flags
18
18
(i.e. parameters that begin with a dash '-') and parameters
19
19
meant for the underlying 'git rev-list' command they use internally
20
20
and flags and parameters for the other commands they use
21
- downstream of 'git rev-list'. This command is used to
22
- distinguish between them.
21
+ downstream of 'git rev-list'. The primary purpose of this command
22
+ is to allow calling programs to distinguish between them. There are
23
+ a few other operation modes that have nothing to do with the above
24
+ "help parse command line options".
25
+
26
+ Unless otherwise specified, most of the options and operation modes
27
+ require you to run this command inside a git repository or a working
28
+ tree that is under the control of a git repository, and will give you
29
+ a fatal error otherwise.
23
30
24
31
25
32
OPTIONS
@@ -32,11 +39,15 @@ Each of these options must appear first on the command line.
32
39
33
40
--parseopt::
34
41
Use 'git rev-parse' in option parsing mode (see PARSEOPT section below).
42
+ The command in this mode can be used outside a repository or
43
+ a working tree controlled by a repository.
35
44
36
45
--sq-quote::
37
46
Use 'git rev-parse' in shell quoting mode (see SQ-QUOTE
38
47
section below). In contrast to the `--sq` option below, this
39
48
mode only does quoting. Nothing else is done to command input.
49
+ The command in this mode can be used outside a repository or
50
+ a working tree controlled by a repository.
40
51
41
52
Options for --parseopt
42
53
~~~~~~~~~~~~~~~~~~~~~~
0 commit comments