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

[PATCH] completion: add deprecated __git_complete_file ()

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Jun 7, 2013, 19:09 UTC
Message-ID
<1370632168-25298-1-git-send-email-artagnon@gmail.com>

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.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
---
 Based on pu.
 contrib/completion/git-completion.bash | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index d0a9ba4..0fb81c9 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -489,6 +489,11 @@ __git_complete_revlist_file ()
 	esac
 }
 
+# no callers; deprecated alias
+__git_complete_file ()
+{
+	__git_complete_revlist_file
+}
 
 # __git_complete_index_file requires 1 argument:
 # 1: the options to pass to ls-file
-- 
1.8.3.244.g98dd9db.dirty
Next: Felipe Contreras
Message 1 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.