git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* broken bash completion
@ 2012-05-02 14:09 Rolf Leggewie
  2012-05-04 23:32 ` SZEDER Gábor
  0 siblings, 1 reply; 8+ messages in thread
From: Rolf Leggewie @ 2012-05-02 14:09 UTC (permalink / raw)
  To: git

forward from http://code.google.com/p/git-core/issues/detail?id=11
and https://bugs.launchpad.net/bugs/853081


Hello,

not sure you guys pay much attention to the issue tracker over on 
code.google.com so I'll try my luck here.

Current bash completion works the following way.

1) only tag-completion possible: complete tag as much as possible
2) only file/dir-completion possible: complete path as much as possible
3) all of tag/file/dir-completion possible: complete tag (!) as much as 
possible

1 and 2 are fine, but for #3 git should really stop at the lowest common 
denominator for all of tags, files and directories. This is explained 
better in above tickets, but I'll also include an example here for 
illustration.  Let's say I had tags debian/1.4.9-1 and debian/1.4.9-2 as 
well as debian/changelog file (as is common when using git-buildpackage, 
this is a real life example).  Current bash-completion behavior for "git 
log debiTAB" is to complete to "git log debian/1.4.9-" when it really 
should be "git log debian/".

Thank you for your attention.

Regards

Rolf

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

end of thread, other threads:[~2012-05-05 14:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-02 14:09 broken bash completion Rolf Leggewie
2012-05-04 23:32 ` SZEDER Gábor
2012-05-05  4:24   ` Rolf Leggewie
2012-05-05 12:13     ` SZEDER Gábor
2012-05-05 12:22       ` Andreas Schwab
2012-05-05 13:11       ` Felipe Contreras
2012-05-05 13:57         ` fREW Schmidt
2012-05-05 14:26           ` Felipe Contreras

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).