{"thread":{"id":"28604","subject":"git remote doesn't show remotes from .git/remotes","startedAt":"2011-10-06T15:33:23Z","lastAt":"2011-10-07T18:08:59Z","messageCount":4,"participants":["Kirill Likhodedov","Jeff King","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"177036","messageId":"26866FC7-4D4D-46D0-89DE-85AF459AC48C@jetbrains.com","threadId":"28604","inReplyTo":null,"subject":"git remote doesn't show remotes from .git/remotes","fromName":"Kirill Likhodedov","fromEmail":"kirill.likhodedov@jetbrains.com","sentAt":"2011-10-06T15:33:23Z","receivedAt":"2011-10-06T15:33:23Z","isPatch":false,"sender":{"key":"kirill.likhodedov@jetbrains.com","avatar":"https://gravatar.com/avatar/9fd55d2a110e8e96deb3ed7b503d7f3b9b5b1ed5ca9ef6683c15525b11b94e63?d=mp&s=160"},"body":"Hello,\n\nIt seems that 'git remote' doesn't display remotes registered not in .git/config but in .git/remotes/.\nIs it a bug?\n\n# git version\ngit version 1.7.6\n# git remote\norigin\n# ls .git/remotes\ntest\n# git fetch test         // succeeds\n\nBtw, are there advantages in using .git/remotes/ instead of .git/config ? \nIf not, are there plans to remove .git/remotes/ support in future versions?\n\nThanks.\n\n----------------------------------\nKirill Likhodedov\nJetBrains, Inc\nhttp://www.jetbrains.com\n\"Develop with pleasure!\"\n"},{"id":"177155","messageId":"20111007150423.GA2076@sigill.intra.peff.net","threadId":"28604","inReplyTo":"26866FC7-4D4D-46D0-89DE-85AF459AC48C@jetbrains.com","subject":"Re: git remote doesn't show remotes from .git/remotes","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2011-10-07T15:04:24Z","receivedAt":"2011-10-07T15:04:24Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Thu, Oct 06, 2011 at 07:33:23PM +0400, Kirill Likhodedov wrote:\n\n> It seems that 'git remote' doesn't display remotes registered not in\n> .git/config but in .git/remotes/.\n> Is it a bug?\n\nIt seems to have been lost in 211c896 (Make git-remote a builtin,\n2008-02-29).\n\nIt wouldn't be that hard to add it back in. I'm not sure how much we\ncare, though. We haven't generated .git/remotes files in a long time,\nand this is the first notice of the bug after 3.5 years. Is this an old\nrepo that has remotes, or are you wondering if you should use them in a\nnew repo?\n\n> Btw, are there advantages in using .git/remotes/ instead of .git/config ?\n\nNo. They were an older format, and were replaced by having the remote\ndefined in the configuration (and there are many things you can specify\nin the config that you can't do via .git/remotes).\n\n> If not, are there plans to remove .git/remotes/ support in future versions?\n\nI don't think there is a specific plan. They're kept for backwards\ncompatibility. But really, there is no reason to be using them at all at\nthis point.\n\n-Peff\n"},{"id":"177157","messageId":"20D55874-4329-4F8C-8EEE-0319B57F4A2B@jetbrains.com","threadId":"28604","inReplyTo":"20111007150423.GA2076@sigill.intra.peff.net","subject":"Re: git remote doesn't show remotes from .git/remotes","fromName":"Kirill Likhodedov","fromEmail":"kirill.likhodedov@jetbrains.com","sentAt":"2011-10-07T15:49:50Z","receivedAt":"2011-10-07T15:49:50Z","isPatch":false,"sender":{"key":"kirill.likhodedov@jetbrains.com","avatar":"https://gravatar.com/avatar/9fd55d2a110e8e96deb3ed7b503d7f3b9b5b1ed5ca9ef6683c15525b11b94e63?d=mp&s=160"},"body":"\n07.10.2011, в 19:04, Jeff King wrote\n\n> I'm not sure how much we\n> care, though. We haven't generated .git/remotes files in a long time,\n> and this is the first notice of the bug after 3.5 years. Is this an old\n> repo that has remotes, or are you wondering if you should use them in a\n> new repo?\n> \n\nNo, I never came across any usages of .git/remotes.\nI am writing a Git integration plugin for an IDE, and was studying documentation for git-remote where I saw this method to define remotes. \nSo 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.\n\nI agree that the bug is not worth fixing since nobody uses .git/remotes anyway.\n\nThanks for the clarification.\n"},{"id":"177171","messageId":"7v1uuowu6c.fsf@alter.siamese.dyndns.org","threadId":"28604","inReplyTo":"20111007150423.GA2076@sigill.intra.peff.net","subject":"Re: git remote doesn't show remotes from .git/remotes","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2011-10-07T18:08:59Z","receivedAt":"2011-10-07T18:08:59Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Jeff King <peff@peff.net> writes:\n\n> On Thu, Oct 06, 2011 at 07:33:23PM +0400, Kirill Likhodedov wrote:\n>\n>> It seems that 'git remote' doesn't display remotes registered not in\n>> .git/config but in .git/remotes/.\n>> Is it a bug?\n>\n> It seems to have been lost in 211c896 (Make git-remote a builtin,\n> 2008-02-29).\n\nSad.\n\n> I don't think there is a specific plan. They're kept for backwards\n> compatibility. But really, there is no reason to be using them at all at\n> this point.\n\nI've been thinking about making a list of deprecations/deletions for Git\n2.0. The only two requirements needed to be added to the list are that it\ngets list concensus and it is backed by a solid patch (or patch series).\n"}]}