#505301 Please add completion for TopGit using its shell completion logic

Package:
zsh
Source:
zsh
Description:
shell with lots of features
Submitter:
Michael Biebl
Date:
2026-07-17 19:09:05 UTC
Severity:
wishlist
Tags:
Blocked By:
Bug Title
499172

  0

Please provide shell completion logic

wishlist stable testing unstable over 17 years ago

#505301#5
Date:
2008-09-15 23:31:06 UTC
From:
To:
Hi,

it would be really helpful if tg provided a bash completion script.

Cheers,
Michael

#505301#10
Date:
2008-09-16 18:07:42 UTC
From:
To:
tags 499072 confirmed help
clone 499072 -1
retitle -1 Please provide zsh completion support
thanks

also sprach Michael Biebl <biebl@debian.org> [2008.09.16.0031 +0100]:

Agreed. I use zsh myself, so someone else will need to do this
though.

#505301#23
Date:
2008-11-11 12:12:30 UTC
From:
To:
Needs work.

Index: Completion/Unix/Command/_topgit
===================================================================
RCS file: Completion/Unix/Command/_topgit
diff -N Completion/Unix/Command/_topgit
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ Completion/Unix/Command/_topgit	11 Nov 2008 12:08:15 -0000
@@ -0,0 +1,8 @@
+#compdef tg
+local expl
+
+if (( CURRENT == 2 )); then
+  _wanted subcmd expl 'topgit command' compadd create delete export import info patch remote summary update
+else
+  _files
+fi

#505301#28
Date:
2008-11-11 12:58:12 UTC
From:
To:
< Clint> madduck: how amenable would upstream be to building completion logic into the tg commands?
< madduck> Clint: for the moment, I am upstream. So 100%
< Clint> madduck: great. do you have bzr installed?
< madduck> yes
< Clint> madduck: if you run 'bzr s-c' and then 'bzr s-c blame' you'll see what i was trying to achieve
< Clint> (which failed, of course)



piper:..pkg/mdadm/topgit|master|% bzr s-c
--help:show help on a command or other topic
-?:show help on a command or other topic
-h:show help on a command or other topic
?:show help on a command or other topic
add:add specified files or directories
ann:show the origin of each line in a file
annotate:show the origin of each line in a file
bind:convert the current branch into a checkout of the supplied branch
blame:show the origin of each line in a file
branch:create a new copy of a branch
break-lock:break a dead lock on a repository, branch or working directory
cat:write the contents of a file as of a given revision to standard output
check:validate consistency of branch history
checkin:commit changes into a new revision
checkout:create a new checkout of an existing branch
ci:commit changes into a new revision
clone:create a new copy of a branch
co:create a new checkout of an existing branch
commit:commit changes into a new revision
conflicts:list files with conflicts
deleted:list files deleted in the working tree
di:show differences in the working tree, between revisions or branches
dif:show differences in the working tree, between revisions or branches
diff:show differences in the working tree, between revisions or branches
export:export current or past revision to a destination directory or archive
get:create a new copy of a branch
help:show help on a command or other topic
ignore:ignore specified files or patterns
ignored:list ignored files and the patterns that matched them
info:show information about a working tree, branch or repository
init:make a directory into a versioned branch
init-repo:create a shared repository to hold branches
init-repository:create a shared repository to hold branches
launchpad-login:show or set the launchpad user id
log:show log of a branch, file, or directory
lp-login:show or set the launchpad user id
ls:list files in a tree
merge:perform a three-way merge
missing:show unmerged/unpulled revisions between two branches
mkdir:create a new versioned directory
move:move or rename a file
mv:move or rename a file
nick:print or set the branch nickname.
pack:compress the data within a repository
plugins:list the installed plugins
praise:show the origin of each line in a file
pull:turn this branch into a mirror of another branch
push:update a mirror of this branch
reconcile:reconcile bzr metadata in a branch
reconfigure:reconfigure the type of a bzr directory
register-branch:register a branch with launchpad.net
remerge:redo a merge
remove:remove files or directories
remove-tree:remove the working tree from a given branch/checkout
rename:move or rename a file
renames:show list of renamed files
resolve:mark a conflict as resolved
resolved:mark a conflict as resolved
revert:revert files to a previous revision
revno:show current revision number
rm:remove files or directories
root:show the tree root directory
send:mail or create a merge-directive for submiting changes
serve:run the bzr server
server:run the bzr server
sign-my-commits:sign all commits by a given committer
split:split a subdirectory of a tree into a separate tree
st:display status summary
stat:display status summary
status:display status summary
switch:set the branch of a checkout and update
tag:create, remove or modify a tag naming a revision
tags:list tags
testament:show testament (signing-form) of a revision
unbind:convert the current checkout into a regular branch
uncommit:remove the last committed revision
up:update a tree to have the latest code committed to its branch
update:update a tree to have the latest code committed to its branch
upgrade:upgrade branch storage to current format
version:show version of bzr
version-info:show version information about this tree
whoami:show or set bzr user id

piper:..pkg/mdadm/topgit|master|% bzr s-c blame
"(--all -None)"{--all,-None}
"(--verbose -v)"{--verbose,-v}
"(--help -h)"{--help,-h}
"(--quiet -q)"{--quiet,-q}
"(--long -None)"{--long,-None}
"(--show-ids -None)"{--show-ids,-None}
"(--revision -r)"{--revision,-r}
filename

#505301#33
Date:
2008-11-11 15:25:22 UTC
From:
To:
clone 499172 -1
retitle 499172 Please provide shell completion logic
reassign -1 zsh
retitle -1 Please add completion for TopGit using its shell completion logic
block -1 499172

Once TopGit provides something like bzr s-c, the zsh package only
needs to add a little bit of completion to make it all happen. Thus
I am clone-blocking the bug.

#505301#48
Date:
2026-07-17 18:59:37 UTC
From:
To:
Hi,

* martin f krafft [Tue Nov 11, 2008 at 04:25:22PM +0100]:

topgit was removed from Debian as of
https://bugs.debian.org/1115196, IMO there's no need for keeping
this bug around, marking it as resolved.

regards
-mika-