Thread (6 messages) flat view 6 messages, 3 authors, 2016-08-11

Re: [StGIT PATCH] StGIT bash completion

From: Karl Hasselström <hidden>
Date: 2016-08-11 20:31:14

On 2006-11-16 14:21:27 +0000, Catalin Marinas wrote:
On 12/11/06, Karl Hasselström [off-list ref] wrote:
quoted
A minimal bash completion script for StGIT. It completes the
subcommand names, and options and patch names for some
subcommands.
Thanks for the patch. I modified it slightly to automatically
generate the options for other commands as well (by invoking "stg
help <command>" and it doesn't seem to be slow). I'll try to push it
tonight.
Hmm. I'll have to try it, but I was half planning to hard-code the
list of subcommands instead of calling "stg help" since it causes a
tangible delay. On the machines I've tried, it easily takes 0.2
seconds to run "stg help" (with hot caches; with cold caches, it's
_really_ bad), and that's bad for interactive behavior.

There's also the point that some switches need (or can benefit from)
the tab completion machinery, and thus can't just be automatically
extracted and used. But autocompleting the switch names shouldn't
interfere with that, and hard-coding stuff that changes every now and
then is both morally wrong and a lot of work.
Thanks for the other patches as well. I included some
Ah, thanks!
 but haven't finished them yet.
No problem. Thanks to the power of modern version control systems, I'm
able to use my own branch of StGIT in the meantime, on all the various
computers that I use. :-)

-- 
Karl Hasselström, kha@treskal.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help