Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] completion: git: minor doc fixes
- X-seq: zsh-workers 34467
- From: Daniel Hahler <genml+zsh-workers@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] completion: git: minor doc fixes
- Date: Sun, 8 Feb 2015 15:16:00 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thequod.de; h= x-mailer:message-id:date:date:subject:subject:from:from:received :received:received; s=postfix2; t=1423404965; bh=y1keN3QB098ueSR bJm49dbUgRBtK2j8ys3wWyG3hZYc=; b=v3GU/wQz5dwVLvdvJZyWuVhBh8HsKf3 pQmS+Axw/36briucL34HSrzUlVBcZ5vkMtsBh2oFC9225uByFQ4l5mJttSYMUopH yMYMSlKnTeTT9xt3ZWJTxPhn2DUHnRovVxyMwA/XwYHi28CyM5dYxNRpEaNyTWAc 90fac/kE8/+I=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
From: Daniel Hahler <git@xxxxxxxxxx>
I am not sure about the deprecation of user-commands, but from other
places in the doc and commit history this deprecation was meant to be
reverted?!
---
Completion/Unix/Command/_git | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 17c4d57..50eb4d3 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -4,7 +4,7 @@
#
# Say you got your own git sub-commands (git will run a program `git-foo'
# when you run "git foo") and you want "git f<tab>" to complete that sub
-# commands name for you. You can make that sub-command know to the completion
+# commands name for you. You can make that sub-command known to the completion
# via the user-command style:
#
# % zstyle ':completion:*:*:git:*' user-commands foo:'description for foo'
@@ -20,17 +20,13 @@
# completion as well. Place such a function inside an autoloaded #compdef file
# and you should be all set. You can add a description to such a function by
# adding a line matching
-#
+#
# #description DESCRIPTION
#
# as the second line in the file. See
# Completion/Debian/Command/_git-buildpackage in the Zsh sources for an
# example.
#
-# As this solution is so much better than the user-commands zstyle method, the
-# zstyle method is now DEPRECATED. It will most likely be removed in the next
-# major release of Zsh (5.0).
-#
# When _git does not know a given sub-command (say `bar'), it falls back to
# completing file names for all arguments to that sub command. I.e.:
#
@@ -5219,7 +5215,7 @@ _git_commands () {
plumbing-sync-commands \
plumbing-sync-helper-commands \
plumbing-internal-helper-commands
-
+
while _tags; do
_requested aliases && \
--
2.3.0.dirty
Messages sorted by:
Reverse Date,
Date,
Thread,
Author