Git completion does not facilitate extension
Bug #513336 reported by
David Clymer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
git-core (Ubuntu) |
New
|
Low
|
Unassigned |
Bug Description
Binary package hint: git-core
The completion script included with git-core prevents users from writing completion scripts for custom git commands. I can extend git itself by creating a command "git-foo", and placing it in my path. The command can then be used like so: "git foo". However, if I want to add command completion for that command without modifying (I may not have permission) or duplicating the system git completion, I can't write a completion script which matches works on "git foo", only "git-foo", which is not how I would ever call the script.
Anyway if the attached patch (or something like it) were added, to the git completion script, it would be awfully handy.
Changed in git-core (Ubuntu): | |
importance: | Undecided → Low |
tags: |
added: bash-completion removed: bash completion |
To post a comment you must log in.
The bash completion script comes from contrib/ completion/ git-completion. bash upstream. Can you send your patch to the Git mailing list for review (see Documentation/ SubmittingPatch es)?