git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff King <peff@peff.net>
To: Kirill Likhodedov <kirill.likhodedov@jetbrains.com>
Cc: git@vger.kernel.org
Subject: Re: git remote doesn't show remotes from .git/remotes
Date: Fri, 7 Oct 2011 11:04:24 -0400	[thread overview]
Message-ID: <20111007150423.GA2076@sigill.intra.peff.net> (raw)
In-Reply-To: <26866FC7-4D4D-46D0-89DE-85AF459AC48C@jetbrains.com>

On Thu, Oct 06, 2011 at 07:33:23PM +0400, Kirill Likhodedov wrote:

> It seems that 'git remote' doesn't display remotes registered not in
> .git/config but in .git/remotes/.
> Is it a bug?

It seems to have been lost in 211c896 (Make git-remote a builtin,
2008-02-29).

It wouldn't be that hard to add it back in. I'm not sure how much we
care, though. We haven't generated .git/remotes files in a long time,
and this is the first notice of the bug after 3.5 years. Is this an old
repo that has remotes, or are you wondering if you should use them in a
new repo?

> Btw, are there advantages in using .git/remotes/ instead of .git/config ?

No. They were an older format, and were replaced by having the remote
defined in the configuration (and there are many things you can specify
in the config that you can't do via .git/remotes).

> If not, are there plans to remove .git/remotes/ support in future versions?

I don't think there is a specific plan. They're kept for backwards
compatibility. But really, there is no reason to be using them at all at
this point.

-Peff

  reply	other threads:[~2011-10-07 15:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-06 15:33 git remote doesn't show remotes from .git/remotes Kirill Likhodedov
2011-10-07 15:04 ` Jeff King [this message]
2011-10-07 15:49   ` Kirill Likhodedov
2011-10-07 18:08   ` Junio C Hamano

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=20111007150423.GA2076@sigill.intra.peff.net \
    --to=peff@peff.net \
    --cc=git@vger.kernel.org \
    --cc=kirill.likhodedov@jetbrains.com \
    /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).