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
fiThat 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