git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [StGit PATCH] Added basic bash completion script for StGit.

From
Ted Pavlic <ted@tedpavlic.com>
Date
Jan 22, 2009, 16:09 UTC
Message-ID
<49789A1F.8010203@tedpavlic.com>
In-Reply-To
<20090122160350.GA15074@diana.vm.bytemark.co.uk>
>> I didn't see it because it is generated in the build process. :(
>
> Yeah, sorry about that. I made it that way so it would be kept
> up-to-date automatically (which works quite well, by the way).

The only downside is that it's a little harder to keep track of when the completion script changes (e.g., when you have made your own local changes). However, the method you use provides very *fast* completion (as opposed to git and hg completion, which generate their keywords on the fly and thus run relatively slowly).

HOWEVER, please see the threads (which modify the Python that generates the script):

	[StGit PATCH 1/2] Modify bash completion to support help, version, and 
copyright.
	[StGit PATCH 2/2] Make bash completion fail to bashdefault before 
default completion.

The former thread could be implemented by making help, version, and copyright modules like the rest of the commands, but I think this method is fine (and it makes stg help <tab> show fewer entries).

	Thanks --
	Ted
-- 
Ted Pavlic <ted@tedpavlic.com>

   Please visit my ALS association page:
         http://web.alsa.org/goto/tedpavlic
   My family appreciates your support in the fight to defeat ALS.
Previous: Karl HasselströmNext: Karl Hasselström
Message 5 of 6 in “Added basic bash completion script for StGit.”
  1. Added basic bash completion script for StGit.ted@tedpavlic.com, Jan 19, 2009
  2. Ted PavlicJan 19, 2009
  3. Ted PavlicJan 19, 2009
  4. Karl HasselströmJan 22, 2009
  5. Ted PavlicJan 22, 2009
  6. Karl HasselströmJan 22, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.