[MacPorts] #37117: git-core 1.8.0 bash completions missing git-prompt.sh code

MacPorts noreply at macports.org
Sun Nov 25 01:41:33 PST 2012


#37117: git-core 1.8.0 bash completions missing git-prompt.sh code
-----------------------+-------------------------
  Reporter:  jeff@…    |      Owner:  ciserlohn@…
      Type:  defect    |     Status:  closed
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.1.2
Resolution:  invalid   |   Keywords:
      Port:  git-core  |
-----------------------+-------------------------
Changes (by ciserlohn@…):

 * status:  reopened => closed
 * resolution:   => invalid


Comment:

 Replying to [comment:4 jeff@…]:
 > But the proper place is for it to be added to the
 /opt/local/etc/bash_completion.d directory so that

 It's not the proper place (by the way /opt/local/etc/bash_completion.d is
 legacy, the new diretory is /opt/local/share/bash-
 completion/completions/).

 The git_prompt.sh has been split out because (see
 https://github.com/git/git/commit/af31a456b4cd38f2630ed8e556e23954f806a3cc):
 * bash_completion can load completions dynamically, which means that the
 git_ps1() function is not available when the shell is created
 * some users are only interested in the !__git_ps1() function but not the
 completions (e.g. zsh users), others are only interested in the
 completions not the !__git_ps1() function (e.g. users who have tweaked
 their prompt in other ways)

 Therefor is better to have both scripts in separate places where they can
 be individually sourced.

-- 
Ticket URL: <https://trac.macports.org/ticket/37117#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list