File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ ENHANCED OPTION PARSER
93
93
From the git 1.5.4 series and further, many git commands (not all of them at the
94
94
time of the writing though) come with an enhanced option parser.
95
95
96
- Here is an exhaustive list of the facilities provided by this option parser.
96
+ Here is a list of the facilities provided by this option parser.
97
97
98
98
99
99
Magic Options
@@ -137,6 +137,16 @@ options. This means that you can for example use `git rm -rf` or
137
137
`git clean -fdx`.
138
138
139
139
140
+ Abbreviating long options
141
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
142
+ Commands that support the enhanced option parser accepts unique
143
+ prefix of a long option as if it is fully spelled out, but use this
144
+ with a caution. For example, `git commit --amen` behaves as if you
145
+ typed `git commit --amend`, but that is true only until a later version
146
+ of Git introduces another option that shares the same prefix,
147
+ e.g `git commit --amenity" option.
148
+
149
+
140
150
Separating argument from the option
141
151
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
142
152
You can write the mandatory option parameter to an option as a separate
You can’t perform that action at this time.
0 commit comments