Skip to content

Commit 7a96b75

Browse files
LemmingAvalanchegitster
authored andcommitted
gitcli: drop mention of “non-dashed form”
Git builtins used to be called like e.g. `git-commit`, not `git commit` (*dashed form* and *non-dashed form*, respectively). The dashed form was deprecated in version 1.5.4 (2006). Now only a few commands have an alternative dashed form when `SKIP_DASHED_BUILT_INS` is active.[1] The mention here is from 2f7ee08 (parse-options: Add a gitcli(5) man page., 2007-12-13), back when the deprecation was relatively recent. These days though it seems like an irrelevant point to make to budding CLI scripters—you don’t have to warn against a style that probably doesn’t even work on their git(1) installation. † 1: 179227d (Optionally skip linking/copying the built-ins, 2020-09-21) Signed-off-by: Kristoffer Haugsbakk <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0f9d4d2 commit 7a96b75

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Documentation/gitcli.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@ you will.
8181
Here are the rules regarding the "flags" that you should follow when you are
8282
scripting Git:
8383

84-
* It's preferred to use the non-dashed form of Git commands, which means that
85-
you should prefer `git foo` to `git-foo`.
86-
8784
* Splitting short options to separate words (prefer `git foo -a -b`
8885
to `git foo -ab`, the latter may not even work).
8986

0 commit comments

Comments
 (0)