zsh-workers
 help / color / mirror / code / Atom feed
* _git: Update add completion.
@ 2008-09-01 20:32 Mikael Magnusson
  2008-09-01 20:35 ` _git: Complete rm for git-remote Mikael Magnusson
  0 siblings, 1 reply; 3+ messages in thread
From: Mikael Magnusson @ 2008-09-01 20:32 UTC (permalink / raw)
  To: zsh-workers

From: Mikael Magnusson <mikachu@gmail.com>
Date: Wed, 27 Aug 2008 02:22:42 +0200
Subject: [PATCH] _git: Update add completion.

---
  Completion/Unix/Command/_git |    9 +++++----
  1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index f391198..e040ec9 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -1322,12 +1322,13 @@ _git-add () {
    declare -A opt_args

    _arguments -C -S \
-    '-n[do not actually add files; only show which ones would be added]' \
-    '-v[show files as they are added]' \
-    '-f[allow adding otherwise ignored files]' \
+    '(-n --dry-run)'{-n,--dry-run}'[do not actually add files; only show which ones would be added]' \
+    '(-v --verbose)'{-v,--verbose}'[show files as they are added]' \
+    '(-f --force)'{-f,--force}'[allow adding otherwise ignored files]' \
      '(-i --interactive : -)'{-i,--interactive}'[add contents interactively to the index]' \
      '(-p --patch : -)'{-p,--patch}'[like -i but go directly into patch mode for specified files]' \
-    '-u[Update only files git already knows about]' \
+    '(-u --update)'{-u,--update}'[update only files git already knows about]' \
+    '(-A --all)'{-A,--all}'[act as both add . and add -u]' \
      '--refresh[do not add files, but refresh their stat() info in the index]' \
      '--ignore-errors[continue adding if an error occurs]' \
      '*:file:->files' && ret=0
-- 
1.6.0.GIT


--
Mikael Magnusson


^ permalink raw reply	[flat|nested] 3+ messages in thread

* _git: Complete rm for git-remote.
  2008-09-01 20:32 _git: Update add completion Mikael Magnusson
@ 2008-09-01 20:35 ` Mikael Magnusson
  2008-09-02 11:26   ` _git: There were two _git-clean(), add -s to the kept one Mikael Magnusson
  0 siblings, 1 reply; 3+ messages in thread
From: Mikael Magnusson @ 2008-09-01 20:35 UTC (permalink / raw)
  To: zsh-workers

From: Mikael Magnusson <mikachu@gmail.com>
Date: Sun, 31 Aug 2008 06:21:30 +0200
Subject: [PATCH] _git: Complete rm for git-remote.

---
  Completion/Unix/Command/_git |    5 ++++-
  1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 3b6a4ad..2d2c93e 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -676,7 +676,8 @@ _git-remote () {
          'add:add a new remote'
          'show:show information about a given remote'
          'prune:delete all stale tracking branches for a given remote'
-        'update:fetch updates for a set of remotes')
+        'update:fetch updates for a set of remotes'
+        'rm:remove a remote from .git/config and all associated tracking branches')

        _describe -t commands 'sub-command' commands && ret=0
        ;;
@@ -703,6 +704,8 @@ _git-remote () {
          (update)
            __git_remote-groups && ret=0
            ;;
+        (rm)
+          __git_remotes && ret=0
        esac
        ;;
    esac
-- 
1.6.0.GIT


--
Mikael Magnusson


^ permalink raw reply	[flat|nested] 3+ messages in thread

* _git: There were two _git-clean(), add -s to the kept one.
  2008-09-01 20:35 ` _git: Complete rm for git-remote Mikael Magnusson
@ 2008-09-02 11:26   ` Mikael Magnusson
  0 siblings, 0 replies; 3+ messages in thread
From: Mikael Magnusson @ 2008-09-02 11:26 UTC (permalink / raw)
  To: zsh-workers

From: Mikael Magnusson <mikachu@gmail.com>
Date: Tue, 2 Sep 2008 13:22:18 +0200
Subject: [PATCH] _git: There were two _git-clean(), add -s to the kept one.

---
  Completion/Unix/Command/_git |   12 +-----------
  1 files changed, 1 insertions(+), 11 deletions(-)

diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 1f8d2a5..edea5f7 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -437,16 +437,6 @@ _git-checkout-index () {
      '*::file:__git_cached_files' && ret=0
  }

-(( $+functions[_git-clean] )) ||
-_git-clean () {
-  _arguments \
-    '-d[remove untracked directories]' \
-    '-n[just show what would be done]' \
-    '-q[be quiet, only report errors]' \
-    '(-X -x)-x[do use ignore rules]' \
-    '(-X -x)-X[remove only files ignored by git]' && ret=0
-}
-
  (( $+functions[_git-commit-tree] )) ||
  _git-commit-tree () {
    if (( CURRENT == 2 )); then
@@ -1611,7 +1601,7 @@ _git-cherry-pick () {

  (( $+functions[_git-clean] )) ||
  _git-clean () {
-  _arguments -S \
+  _arguments -S -s \
      '-d[also remove untracked directories]' \
      '-n[do a dry run]' \
      '-f[required when clean.requireForce is true (default)]' \
-- 
1.6.0.GIT


--
Mikael Magnusson


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-09-02 11:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-01 20:32 _git: Update add completion Mikael Magnusson
2008-09-01 20:35 ` _git: Complete rm for git-remote Mikael Magnusson
2008-09-02 11:26   ` _git: There were two _git-clean(), add -s to the kept one Mikael Magnusson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).