Skip to content

Commit

Permalink
Merge branch 'jc/maint-abbrev-option-cli' into maint-1.7.11
Browse files Browse the repository at this point in the history
We did not document that many commands take unique prefix
abbreviations of long options (e.g. "--option" may be the only flag
that the command accepts that begin with "--opt", in which case you
can give "--opt") anywhere easy to find for new people.

* jc/maint-abbrev-option-cli:
  gitcli: describe abbreviation of long options
  • Loading branch information
Junio C Hamano committed Aug 24, 2012
2 parents 7939a33 + 9c81990 commit bdb3033
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Documentation/gitcli.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@ scripting git:
`git log -1 HEAD` but write `git log -1 HEAD --`; the former will not work
if you happen to have a file called `HEAD` in the work tree.

* many commands allow a long option "--option" to be abbreviated
only to their unique prefix (e.g. if there is no other option
whose name begins with "opt", you may be able to spell "--opt" to
invoke the "--option" flag), but you should fully spell them out
when writing your scripts; later versions of Git may introduce a
new option whose name shares the same prefix, e.g. "--optimize",
to make a short prefix that used to be unique no longer unique.


ENHANCED OPTION PARSER
----------------------
Expand Down

0 comments on commit bdb3033

Please sign in to comment.