[MacPorts] #37462: git-core: Actual bash_completion dir implies in bug on hub and git-flow bash completion
MacPorts
noreply at macports.org
Sat Oct 12 05:52:38 PDT 2013
#37462: git-core: Actual bash_completion dir implies in bug on hub and git-flow
bash completion
------------------------------+-------------------------
Reporter: robsonpeixoto@… | Owner: ciserlohn@…
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Resolution: fixed | Keywords: haspatch
Port: git-core |
------------------------------+-------------------------
Changes (by raimue@…):
* status: reopened => closed
* resolution: => fixed
Comment:
Completion for git-flow works, only `hub` causes issues. The problem is
that you want the completion for `hub` to be loaded although you are
typing the command `git`. This is unsupported by bash-completion and the
existing <2.0 implementation is a hack. At the moment, the completion file
for `hub` expects the completion file for `git` to be loaded beforehand as
it merely modifies the existing completion. The load order is not
guaranteed even if they are both in the old
`${prefix}/etc/bash_completion.d` directory.
I updated the hub completion to work properly with bash-completion >= 2.0
in r112130 and r112131. This does not solve the problem of the alias.
However, this is the case for all bash-completion script and thus, out of
scope of this request and would need to be addressed upstream.
As a workaround, if you really want this to work now, add it now in the
following way to your `~/.bashrc`:
{{{
alias git='hub'
source /opt/local/share/bash-completion/completions/hub
}}}
--
Ticket URL: <https://trac.macports.org/ticket/37462#comment:10>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list