Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] Remove git svnimport completion



git svnimport was removed in git version 1.5.4 (2007-10-30)
---
 Completion/Unix/Command/_git |   31 +------------------------------
 1 files changed, 1 insertions(+), 30 deletions(-)

diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 9b6da7b..7db9d8d 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -1,4 +1,4 @@
-#compdef git git-add git-am git-annotate git-apply git-applymbox git-applypatch git-archimport git-archive git-bisect git-blame git-branch git-cat-file git-check-attr git-check-ref-format git-checkout git-checkout-index git-cherry git-cherry-pick git-clean git-clone git-clone-pack git-commit git-commit-tree git-convert-objects git-count-objects git-cvsexportcommit git-cvsimport git-cvsserver git-daemon git-describe git-diff git-diff-files git-diff-index git-diff-stages git-diff-tree git-fast-import git-fetch git-fetch-pack git-fmt-merge-msg git-for-each-ref git-format-patch git-fsck git-gc git-get-tar-commit-id git-grep git-hash-object git-http-fetch git-http-push git-imap-send git-index-pack git-init git-instaweb git-local-fetch git-log git-lost-found git-ls-files git-ls-remote git-ls-tree git-mailinfo git-mailsplit git-merge git-merge-base git-merge-file git-merge-index git-merge-one-file git-merge-tree git-mergetool git-mktag git-mktree git-mv git-name-rev git-pack-object
 s git-pack-redundant git-pack-refs git-patch-id git-peek-remote git-prune git-prune-packed git-pull git-push git-quiltimport git-read-tree git-rebase git-receive-pack git-reflog git-relink git-remote git-repack gut-runstatus git-config git-request-pull git-rerere git-reset git-rev-list git-rev-parse git-revert git-rm git-send-email git-send-pack git-sh-setup git-shell git-shortlog git-show git-show-branch git-show-index git-show-ref git-ssh-fetch git-ssh-upload git-status git-stripspace git-svn git-svnimport git-symbolic-ref git-tag git-tar-tree git-unpack-file git-unpack-objects git-update-index git-update-ref git-update-server-info git-upload-archive git-upload-pack git-var git-verify-pack git-verify-tag git-whatchanged git-write-tree
+#compdef git git-add git-am git-annotate git-apply git-applymbox git-applypatch git-archimport git-archive git-bisect git-blame git-branch git-cat-file git-check-attr git-check-ref-format git-checkout git-checkout-index git-cherry git-cherry-pick git-clean git-clone git-clone-pack git-commit git-commit-tree git-convert-objects git-count-objects git-cvsexportcommit git-cvsimport git-cvsserver git-daemon git-describe git-diff git-diff-files git-diff-index git-diff-stages git-diff-tree git-fast-import git-fetch git-fetch-pack git-fmt-merge-msg git-for-each-ref git-format-patch git-fsck git-gc git-get-tar-commit-id git-grep git-hash-object git-http-fetch git-http-push git-imap-send git-index-pack git-init git-instaweb git-local-fetch git-log git-lost-found git-ls-files git-ls-remote git-ls-tree git-mailinfo git-mailsplit git-merge git-merge-base git-merge-file git-merge-index git-merge-one-file git-merge-tree git-mergetool git-mktag git-mktree git-mv git-name-rev git-pack-object
 s git-pack-redundant git-pack-refs git-patch-id git-peek-remote git-prune git-prune-packed git-pull git-push git-quiltimport git-read-tree git-rebase git-receive-pack git-reflog git-relink git-remote git-repack gut-runstatus git-config git-request-pull git-rerere git-reset git-rev-list git-rev-parse git-revert git-rm git-send-email git-send-pack git-sh-setup git-shell git-shortlog git-show git-show-branch git-show-index git-show-ref git-ssh-fetch git-ssh-upload git-status git-stripspace git-svn git-symbolic-ref git-tag git-tar-tree git-unpack-file git-unpack-objects git-update-index git-update-ref git-update-server-info git-upload-archive git-upload-pack git-var git-verify-pack git-verify-tag git-whatchanged git-write-tree
 
 # TODO: All if (( words[(I)-option] )) should be turned into
 # if (( words[(I)-option] > 0 && words[(I)-option] < CURRENT )), as the user
@@ -265,7 +265,6 @@ _git_commands () {
     'archimport:import an Arch repository into git'
     'cvsexportcommit:export a commit to a CVS checkout'
     'cvsimport:import a CVS "repository" into a git repository'
-    'svnimport:import SVN repository into git'
     'quiltimport:apply a quilt patchset'
     'svn:bidirectional operation between a single Subversion branch and git')
 
@@ -2228,34 +2227,6 @@ _git-relink () {
     '*:directory:_directories' && ret=0
 }
 
-# TODO: import stuff from _svn
-# TODO: Improve completion of -P argument.
-(( $+functions[_git-svnimport] )) ||
-_git-svnimport () {
-  _arguments \
-    $author_conversion_file_arg \
-    '-b[specify the name of the SVN branches directory]:directory:_directories' \
-    '-C[specify the git repository to import into]:directory:_directories' \
-    '-d[use direct HTTP-requests if possible for logs only]:path' \
-    '-D[use direct HTTP-requests if possible]:path' \
-    $help_arg \
-    '-i[do not perform a checkout after importing]' \
-    '-l[limit the number of SVN changesets to pull]: :_guard "[[\:digit\:]]#" number' \
-    '-m[attempt to detect merges based on the commit message]' \
-    '-M[attempt to detect merges based on the commit message with custom pattern]:pattern' \
-    '-o[specify the branch into which you wish to import]:branch' \
-    '-r[prepend "rX: " to commit messages, where X is the subversion revision]' \
-    '-s[specify the change number to start importing from]:start-revision' \
-    '-T[specify the name of the SVN tags directory]:directory:_directories' \
-    '-t[specify the name of the SVN trunk]:trunk:_directories' \
-    '-I[import svn:ignore directory property to files with given name]:ignored file:_files' \
-    '-R[specify how often git repository should be repacked]: :_guard "[[\:digit\:]]#" "number of revisions"' \
-    '-P[import only given path of the SVN tree]::_directory' \
-    $verbose_arg \
-    ':svn-repositry-url:_urls' \
-    '::directory:_directories' && ret=0
-}
-
 # TODO: how do we complete argument 1?
 (( $+functions[_git-symbolic-ref] )) ||
 _git-symbolic-ref () {
-- 
1.6.2.rc0



Messages sorted by: Reverse Date, Date, Thread, Author