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

Re: Bug#602962: zsh: completion for git-buildpackage



On Tue, Nov 09, 2010 at 04:47:39PM -0300, Felipe Sateler wrote:
> I have created a basic completion for git-buildpackage. Please find it
> attached.

Thank you.

Index: Completion/Debian/Command/_git-buildpackage
===================================================================
RCS file: Completion/Debian/Command/_git-buildpackage
diff -N Completion/Debian/Command/_git-buildpackage
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ Completion/Debian/Command/_git-buildpackage	10 Nov 2010 16:05:58 -0000
@@ -0,0 +1,42 @@
+#compdef git-buildpackage
+
+_arguments \
+  '--version[show program version number and exit]' \
+  '--help[show help message and exit]' \
+  '--git-ignore-new[build with uncommited changes in the source tree]' \
+  '--git-no-ignore-new[negates --git-ignore-new]' \
+  '--git-verbose[verbose command execution]' \
+  '--git-tag[create a tag after a successful build]' \
+  '--git-tag-only[do not build, only tag and run the posttag hook]' \
+  '--git-retag[do not fail if the tag already exists]' \
+  '--git-sign-tags[sign tags]' \
+  '--git-no-sign-tags[negates --git-sign-tags]' \
+  '--git-keyid=-[GPG keyid to sign tags with]:GPG key:' \
+  '--git-debian-tag=-[format string for debian tags]:default is debian/%(version)s:' \
+  '--git-upstream-tag=-[format string for upstream tags]:default is upstream/%(version)s:' \
+  '--git-pristine-tar[use pristine-tar to create .orig.tar.gz]' \
+  '--git-no-pristine-tar[negates --git-pristine-tar]' \
+  '--git-force-create[force creation of orig.tar.gz]' \
+  '--git-no-create-orig[do not create orig.tar.gz]' \
+  '--git-tarball-dir=-[location to look for external tarballs]:tarball directory:_files -/' \
+  '--git-compression=-[compression type]:compression:(auto gzip bzip2 lzma xz)' \
+  '--git-compression-level=-[set compression level]:level:(1 2 3 4 5 6 7 8 9)' \
+  '--git-upstream-branch=-[upstream branch]::' \
+  '--git-debian-branch=-[branch the Debian package is being developed on]::' \
+  '--git-ignore-branch[build although debian-branch != current branch]' \
+  '--git-no-ignore-branch[negates --git-ignore-branch]' \
+  '--git-builder=-[command to build the Debian package]:command:' \
+  '--git-cleaner=-[command to clean the working copy]:command:' \
+  '--git-prebuild=-[command to run before a build]:command:' \
+  '--git-postbuild=-[hook run after a successful build]:command:' \
+  '--git-posttag=-[hook run after a successful tag operation]:command:' \
+  '--git-pbuilder[Invoke git-pbuilder for building]' \
+  '--git-no-pbuilder[negates --git-pbuilder]' \
+  '--git-dist=-[build for this distribution when using git-pbuilder]:distribution:' \
+  '--git-arch=-[build for this architecture when using git-pbuilder]:architecture:' \
+  '--git-export-dir=-[before building the package export the source into this directory]:directory:_files -/' \
+  '--git-export=-[export treeish object instead of HEAD]:treeish:' \
+  '--git-dont-purge[retain exported package build directory]' \
+  '--git-overlay[extract orig tarball when using export-dir option]' \
+  '--git-no-overlay[negates --git-overlay]' \
+  '*:Other options:_dpkg-buildpackage'



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