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

Re: latest stg/git commandline completions code

From
Ben Clifford <benc@hawaga.org.uk>
Date
Nov 16, 2005, 03:35 UTC
Message-ID
<6387EBD2-F476-4A43-B764-3D9F2B653483@hawaga.org.uk>
In-Reply-To
<20051110094013.GM30496@pasky.or.cz>
>> There are a few small common functions that are used by all the git
>> completions, though.
> Then could you please separate those from the git completion to some
> kind of 'library'?
that's done now.
Show 8 quoted lines
> When you do
>
>     cat > <tab><tab>
>
> bash happily autocompletes as well. I don't think this is a problem,
> besides it can be useful when you want to use some existing branch  
> name,
> just slightly modified.

ok, convinced - I changed 'branch' and 'checkout' to complete on new branch name.

http://www.hawaga.org.uk/gitcompletion/git-compl-lib http://www.hawaga.org.uk/gitcompletion/cg-compl

are the two latest versions of the code (source the -lib then the cg- file)

There is no autogeneration - I'm still playing round. Its just good- old-fashioned manually hard coded.

The git repo that I'm keeping this and the other completion code (stg, git and gitk) in is at http://www.hawaga.org.uk/gitcompletion.git

-- 
Ben ベン Бэн
http://www.hawaga.org.uk/ben/
My email is high latency but best way to contact me. Alternatively,  
SMS number(s) at above URL.
Previous: Petr Baudis
Message 14 of 14 in “Re: latest stg/git commandline completions code”
  1. BlaisorbladeOct 25, 2005
  2. Catalin MarinasOct 25, 2005
  3. BlaisorbladeOct 25, 2005
  4. Catalin MarinasOct 25, 2005
  5. BlaisorbladeOct 25, 2005
  6. Catalin MarinasOct 26, 2005
  7. BlaisorbladeOct 26, 2005
  8. Ben CliffordNov 8, 2005
  9. Petr BaudisNov 9, 2005
  10. Ben CliffordNov 10, 2005
  11. Ben CliffordNov 10, 2005
  12. Ben CliffordNov 10, 2005
  13. Petr BaudisNov 10, 2005
  14. Ben CliffordNov 16, 2005

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.