git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] completion: add deprecated __git_complete_file ()

From
SZEDER Gábor <szeder@ira.uka.de>
Date
Jun 8, 2013, 00:35 UTC
Message-ID
<20130608003512.GF31625@goldbirke>
In-Reply-To
<CAMP44s0_YkZeC_Xrd1XUo=4=yJDy=8wQKYe34uybhXVqi9bd9Q@mail.gmail.com>
On Fri, Jun 07, 2013 at 02:25:54PM -0500, Felipe Contreras wrote:
Show 8 quoted lines
> On Fri, Jun 7, 2013 at 2:09 PM, Ramkumar Ramachandra <artagnon@gmail.com> wrote:
> > 77c130 (completion: clarify ls-tree, archive, show completion,
> > 2013-06-02) removed __git_complete_file () because it had no callers
> > left in the file.  However, to avoid breaking user scripts that may
> > depend on this, add it back as a deprecated alias.
> 
> This is fine by me, but at some point we need to decide how we should
> prefix the functions that are supposed to be used by external scripts.

Or rather how we should prefix the functions that are _not_ supposed to be used by external scripts. That way all public functions would retain the "__git" prefix and existing scripts calling only common functions like __git_(heads|git_refs|find_on_cmdline|etc.) would work without modification.

Best, Gábor

Previous: Felipe ContrerasNext: Junio C Hamano
Message 5 of 7 in “completion: add deprecated __git_complete_file ()”
  1. completion: add deprecated __git_complete_file ()Ramkumar Ramachandra, Jun 7, 2013
  2. Felipe ContrerasJun 7, 2013
  3. Ramkumar RamachandraJun 7, 2013
  4. Felipe ContrerasJun 7, 2013
  5. SZEDER GáborJun 8, 2013
  6. Junio C HamanoJun 7, 2013
  7. SZEDER GáborJun 8, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.