From: Ramkumar Ramachandra Date: Fri, 21 Jun 2013 11:12:40 GMT Subject: [PATCH 16/16] remote: deprecate read_{branches,remotes}_file Message-ID: <1371813160-4200-17-git-send-email-artagnon@gmail.com> In-Reply-To: <1371813160-4200-1-git-send-email-artagnon@gmail.com> Signed-off-by: Ramkumar Ramachandra --- remote.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/remote.c b/remote.c index 128b210..b487865 100644 --- a/remote.c +++ b/remote.c @@ -227,6 +227,10 @@ static void add_instead_of(struct rewrite *rewrite, const char *instead_of) rewrite->instead_of_nr++; } +/* + * Deprecated; provided for backward compatibility with ancient + * repositories. Modern Git does not encourage their use. + */ static void read_remotes_file(struct remote *remote) { FILE *f = fopen(git_path("remotes/%s", remote->name), "r"); @@ -274,6 +278,10 @@ static void read_remotes_file(struct remote *remote) fclose(f); } +/* + * Deprecated; provided for backward compatibility with ancient + * repositories. Modern Git does not encourage their use. + */ static void read_branches_file(struct remote *remote) { char *frag; -- 1.8.3.1.499.g7ad3486.dirty