From: Ramkumar Ramachandra <artagnon@gmail.com>
To: Git List <git@vger.kernel.org>
Cc: "Junio C Hamano" <gitster@pobox.com>, "SZEDER Gábor" <szeder@ira.uka.de>
Subject: [PATCH] completion: add deprecated __git_complete_file ()
Date: Sat, 8 Jun 2013 00:39:28 +0530 [thread overview]
Message-ID: <1370632168-25298-1-git-send-email-artagnon@gmail.com> (raw)
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 reply other threads:[~2013-06-07 19:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-07 19:09 Ramkumar Ramachandra [this message]
2013-06-07 19:25 ` [PATCH] completion: add deprecated __git_complete_file () Felipe Contreras
2013-06-07 19:29 ` Ramkumar Ramachandra
2013-06-07 19:31 ` Felipe Contreras
2013-06-08 0:35 ` SZEDER Gábor
2013-06-07 20:38 ` Junio C Hamano
2013-06-08 0:24 ` SZEDER Gábor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1370632168-25298-1-git-send-email-artagnon@gmail.com \
--to=artagnon@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=szeder@ira.uka.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).