Git bash completion

Martin Gilday martin.lists at
Sat Apr 18 08:24:12 PDT 2009


Thanks for checking this out for me.
I checked on IRC #git and they confirmed that ls-tree should not be
showing on the completion list as it is not normally intended for user
consumption.  My confusion arose due to being new to Git and the command
being one of the first mentioned in the book ( 
Macports had made getting Git installed so easy, so thanks to all


----- Original message -----
From: "Rainer Müller" <raimue at>
To: "Martin Gilday" <martin.lists at>
Cc: macports-users at
Date: Sat, 18 Apr 2009 17:07:29 +0200
Subject: Re: Git bash completion

Martin Gilday wrote:
> I've started using Git on my mac and wondering if the bash completion
> file is out of date for the port?  In screenshots on other system I can
> see more options such as ls-files ls-tree but these do not appear in the
> completion list.  However they do appear on the tab completion for git
> help ls<tab>.

I can confirm that "git ls-<Tab>" does not offer completion for me with
@ either.

But some tests showed me that it worked with older 1.5.x versions. From
1.5.x to 1.6.x, git removed the git-* commands and they are only
available without the dash. Therefore the completion code also changed.
The git bash completion we are using ships with the upstream tarball.

It seems to me that git changed this intentionally. So I would say you
should check that up with the git project directly, as it does not seem
to be specific to git in MacPorts.


More information about the macports-users mailing list