{"thread":{"id":"11215","subject":"[PATCH] Remove .git/branches from the .git template.","startedAt":"2007-12-09T18:30:55Z","lastAt":"2007-12-10T04:34:56Z","messageCount":3,"participants":["Kristian Høgsberg","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"62509","messageId":"7v3aubpvog.fsf@gitster.siamese.dyndns.org","threadId":"11215","inReplyTo":"20071209183856.GA5587@bitplanet.net","subject":"Re: [PATCH] Remove .git/branches from the .git template.","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2007-12-09T18:30:55Z","receivedAt":"2007-12-09T18:30:55Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Kristian Høgsberg <krh@bitplanet.net> writes:\n\n> The code in git to read the info in .git/branches is still there,\n> but nothing ever writes to this, so lets stop creating it.\n>\n> Signed-off-by: Kristian Høgsberg <krh@redhat.com>\n> ---\n>\n> As far as I can see this should be safe, but I admit to never really\n> knowing what .git/branches was originally used for - tracking remote\n> branches or something?  In any case, we only ever read from this dir\n> so the only left in git to deal with this seems to be for compatibilty\n> with older repos.\n\nThis was done purely so that Cogito would not barf on a repository\ninitialized with \"git init\" even if it did not bother creating necessary\nleading directories when it writes its rough equivalent to .git/remotes/\ninformation.  I do not recall if Cogito had such a problem anymore, but\nI think it can safely go when Cogito is effectively dead.\n"},{"id":"62497","messageId":"20071209183856.GA5587@bitplanet.net","threadId":"11215","inReplyTo":null,"subject":"[PATCH] Remove .git/branches from the .git template.","fromName":"Kristian Høgsberg","fromEmail":"krh@bitplanet.net","sentAt":"2007-12-09T18:38:56Z","receivedAt":"2007-12-09T18:38:56Z","isPatch":true,"sender":{"key":"krh@bitplanet.net","avatar":"https://gravatar.com/avatar/6ba3f320dfeafb6821e9824d11122fe7157e39c443476c4cf35d6dd830052d1d?d=mp&s=160"},"body":"The code in git to read the info in .git/branches is still there,\nbut nothing ever writes to this, so lets stop creating it.\n\nSigned-off-by: Kristian Høgsberg <krh@redhat.com>\n---\n\nAs far as I can see this should be safe, but I admit to never really\nknowing what .git/branches was originally used for - tracking remote\nbranches or something?  In any case, we only ever read from this dir\nso the only left in git to deal with this seems to be for compatibilty\nwith older repos.\n\nKristian\n\n templates/branches-- |    1 -\n 1 files changed, 0 insertions(+), 1 deletions(-)\n delete mode 100644 templates/branches--\n\ndiff --git a/templates/branches-- b/templates/branches--\ndeleted file mode 100644\nindex fae8870..0000000\n--- a/templates/branches--\n+++ /dev/null\n@@ -1 +0,0 @@\n-: this is just to ensure the directory exists.\n-- \n1.5.3.4\n"},{"id":"62536","messageId":"20071210043455.GA12941@bitplanet.net","threadId":"11215","inReplyTo":"7v3aubpvog.fsf@gitster.siamese.dyndns.org","subject":"Re: [PATCH] Remove .git/branches from the .git template.","fromName":"Kristian Høgsberg","fromEmail":"krh@bitplanet.net","sentAt":"2007-12-10T04:34:56Z","receivedAt":"2007-12-10T04:34:56Z","isPatch":true,"sender":{"key":"krh@bitplanet.net","avatar":"https://gravatar.com/avatar/6ba3f320dfeafb6821e9824d11122fe7157e39c443476c4cf35d6dd830052d1d?d=mp&s=160"},"body":"On Sun, Dec 09, 2007 at 10:30:55AM -0800, Junio C Hamano wrote:\n> Kristian Høgsberg <krh@bitplanet.net> writes:\n> \n> > The code in git to read the info in .git/branches is still there,\n> > but nothing ever writes to this, so lets stop creating it.\n> >\n> > Signed-off-by: Kristian Høgsberg <krh@redhat.com>\n> > ---\n> >\n> > As far as I can see this should be safe, but I admit to never really\n> > knowing what .git/branches was originally used for - tracking remote\n> > branches or something?  In any case, we only ever read from this dir\n> > so the only left in git to deal with this seems to be for compatibilty\n> > with older repos.\n> \n> This was done purely so that Cogito would not barf on a repository\n> initialized with \"git init\" even if it did not bother creating necessary\n> leading directories when it writes its rough equivalent to .git/remotes/\n> information.  I do not recall if Cogito had such a problem anymore, but\n> I think it can safely go when Cogito is effectively dead.\n\nOK, I don't know where cogito is in that respect, I thought maybe we had\njust forgotten we still created that directory.  Should we just try to\napply the patch to find out how it might interact with cogito?\n\nKristian\n"}]}