Re: [PATCH v2] completion: add new git_complete helper
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Apr 16, 2012, 16:00 UTC
- Message-ID
- <20120416160001.GK5813@burratino>
- In-Reply-To
- <CAMP44s0PWAV=nD1xnAFMx8OPby88W2jKwDGtiUFY4LA93D-gAw@mail.gmail.com>
Felipe Contreras wrote:
> Perhaps it's time to avoid the __ prefix for public interfaces; > otherwise how would people know they are public?
I'm happy as long as all the identifiers the script exports start with an underscore, as that is the usual convention for completion scripts. Within that namespace, if people want to use ___git or _git__ for private things or something, I don't mind.
If __git_ps1 is moved to a separate script library, it seems fine for it to provide a git_ps1 identifier with no leading underscores when it is not being implicitly included by the completion script.
Jonathan