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

Re: Wine + GIT

From
Jon Loeliger <jdl@freescale.com>
Date
Dec 6, 2005, 17:53 UTC
Message-ID
<1133891589.8577.63.camel@cashmere.sps.mot.com>
In-Reply-To
<20051206173909.GE17457@fieldses.org>
On Tue, 2005-12-06 at 11:39, J. Bruce Fields wrote:
> I've enjoyed getting tab completions without having to add whatever's
> required to my .bashrc to teach it about git subcommands.  Oh well,
> I'll
> get over it.

I believe this effort is already well under way. Uh, I also thought we were going to place it in some "contrib" directory too...?

Also, before I learned of that bash completion effort, I was contemplating modifying the git.c command recognition so that it effectively did this:

   cmd = ... whatever from command line
   if (exec(cmd)) works then
       happily clean up and exit
   else
       using the existing directory scan as a new function,
       determine if "cmd" is a proper prefix of some command,
       if it is unique then
           exec(unique-cmd-disambiguated)
       else
           complain that it is not unique
       fi
    fi
That way:
    "git mer" would fail
    "git merge" would run "git-merge"
    "git merge-" would fail
    "git merge-o" would fail,
    "git-merge-oc" would run "git-merge-octopus".
Any interest?  Overkill?  Bad idea?
jdl
Previous: J. Bruce FieldsNext: Andreas Ericsson
Message 7 of 15 in “Wine + GIT”
  1. Mike McCormackDec 5, 2005
  2. Jeff GarzikDec 6, 2005
  3. Junio C HamanoDec 6, 2005
  4. J. Bruce FieldsDec 6, 2005
  5. Junio C HamanoDec 6, 2005
  6. J. Bruce FieldsDec 6, 2005
  7. Jon LoeligerDec 6, 2005
  8. git shorthands (was: Re: Wine + GIT)Andreas Ericsson, Dec 6, 2005
  9. Ben CliffordDec 7, 2005
  10. Jeff GarzikDec 6, 2005
  11. Mike McCormackDec 6, 2005
  12. Jeff GarzikDec 6, 2005
  13. Nick HengeveldDec 6, 2005
  14. Andreas EricssonDec 6, 2005
  15. Marco CostalbaDec 6, 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.