* git remote doesn't show remotes from .git/remotes
@ 2011-10-06 15:33 Kirill Likhodedov
2011-10-07 15:04 ` Jeff King
0 siblings, 1 reply; 4+ messages in thread
From: Kirill Likhodedov @ 2011-10-06 15:33 UTC (permalink / raw)
To: git
Hello,
It seems that 'git remote' doesn't display remotes registered not in .git/config but in .git/remotes/.
Is it a bug?
# git version
git version 1.7.6
# git remote
origin
# ls .git/remotes
test
# git fetch test // succeeds
Btw, are there advantages in using .git/remotes/ instead of .git/config ?
If not, are there plans to remove .git/remotes/ support in future versions?
Thanks.
----------------------------------
Kirill Likhodedov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git remote doesn't show remotes from .git/remotes
2011-10-06 15:33 git remote doesn't show remotes from .git/remotes Kirill Likhodedov
@ 2011-10-07 15:04 ` Jeff King
2011-10-07 15:49 ` Kirill Likhodedov
2011-10-07 18:08 ` Junio C Hamano
0 siblings, 2 replies; 4+ messages in thread
From: Jeff King @ 2011-10-07 15:04 UTC (permalink / raw)
To: Kirill Likhodedov; +Cc: git
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git remote doesn't show remotes from .git/remotes
2011-10-07 15:04 ` Jeff King
@ 2011-10-07 15:49 ` Kirill Likhodedov
2011-10-07 18:08 ` Junio C Hamano
1 sibling, 0 replies; 4+ messages in thread
From: Kirill Likhodedov @ 2011-10-07 15:49 UTC (permalink / raw)
To: Jeff King; +Cc: git
07.10.2011, в 19:04, Jeff King wrote
> 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?
>
No, I never came across any usages of .git/remotes.
I am writing a Git integration plugin for an IDE, and was studying documentation for git-remote where I saw this method to define remotes.
So I've just decided to report the lack of the 'git remote' output and make sure that I didn't miss anything. And also decide if I have to support them in the product - probably, not.
I agree that the bug is not worth fixing since nobody uses .git/remotes anyway.
Thanks for the clarification.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git remote doesn't show remotes from .git/remotes
2011-10-07 15:04 ` Jeff King
2011-10-07 15:49 ` Kirill Likhodedov
@ 2011-10-07 18:08 ` Junio C Hamano
1 sibling, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2011-10-07 18:08 UTC (permalink / raw)
To: Jeff King; +Cc: Kirill Likhodedov, git
Jeff King <peff@peff.net> writes:
> 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).
Sad.
> 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.
I've been thinking about making a list of deprecations/deletions for Git
2.0. The only two requirements needed to be added to the list are that it
gets list concensus and it is backed by a solid patch (or patch series).
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-10-07 18:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-06 15:33 git remote doesn't show remotes from .git/remotes Kirill Likhodedov
2011-10-07 15:04 ` Jeff King
2011-10-07 15:49 ` Kirill Likhodedov
2011-10-07 18:08 ` Junio C Hamano
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).