{"thread":{"id":"10344","subject":"git-gc --prune interferes cogito?","startedAt":"2007-10-17T14:43:27Z","lastAt":"2007-10-17T18:55:18Z","messageCount":3,"participants":["MichaelTiloDressel@t-online.de","Petr Baudis","Michael Dressel"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"56250","messageId":"1IiA7L-1AWmmW0@fwd35.aul.t-online.de","threadId":"10344","inReplyTo":null,"subject":"git-gc --prune interferes cogito?","fromName":"MichaelTiloDressel@t-online.de","fromEmail":"michaeltilodressel@t-online.de","sentAt":"2007-10-17T14:43:27Z","receivedAt":"2007-10-17T14:43:27Z","isPatch":false,"sender":{"key":"michaeltilodressel@t-online.de","avatar":null},"body":"Hi,\n\nI'm using git-1.5.3.2 and cogito-0.18.1.\n\nAfter I did a git-gc --prune cg-status didn't show my branches anymore.\ngit-branch -a still showed the branches.\nI think that git-gc removed all files from .git/refs/heads/ except for\norigin. Git seams to be fine with the branches in \n .git/logs/refs/heads/. \n\nSo should git-gc not be used together with cogito?\n\nCheers,\nMichael\n"},{"id":"56252","messageId":"20071017153841.GL18279@machine.or.cz","threadId":"10344","inReplyTo":"1IiA7L-1AWmmW0@fwd35.aul.t-online.de","subject":"Re: git-gc --prune interferes cogito?","fromName":"Petr Baudis","fromEmail":"pasky@suse.cz","sentAt":"2007-10-17T15:38:41Z","receivedAt":"2007-10-17T15:38:41Z","isPatch":false,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"  Hi,\n\nOn Wed, Oct 17, 2007 at 04:43:27PM +0200, MichaelTiloDressel@t-online.de wrote:\n> I'm using git-1.5.3.2 and cogito-0.18.1.\n> \n> After I did a git-gc --prune cg-status didn't show my branches anymore.\n> git-branch -a still showed the branches.\n> I think that git-gc removed all files from .git/refs/heads/ except for\n> origin. Git seams to be fine with the branches in \n>  .git/logs/refs/heads/. \n> \n> So should git-gc not be used together with cogito?\n\n  Cogito doesn't support packed heads - I guess setting gc.packrefs to\nfalse should fix the issue. Cogito should support packed tags, I guess;\nI don't know if there's a way to make git-gc pack only tags.\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nEarly to rise and early to bed makes a male healthy and wealthy and dead.\n                -- James Thurber\n"},{"id":"56277","messageId":"Pine.LNX.4.64.0710172034270.4755@castor.milkiway.cos","threadId":"10344","inReplyTo":"20071017153841.GL18279@machine.or.cz","subject":"Re: git-gc --prune interferes cogito?","fromName":"Michael Dressel","fromEmail":"michaeltilodressel@t-online.de","sentAt":"2007-10-17T18:55:18Z","receivedAt":"2007-10-17T18:55:18Z","isPatch":false,"sender":{"key":"michaeltilodressel@t-online.de","avatar":null},"body":"Hi,\n\n\nOn Wed, 17 Oct 2007, Petr Baudis wrote:\n\n>   Hi,\n> \n> On Wed, Oct 17, 2007 at 04:43:27PM +0200, MichaelTiloDressel@t-online.de wrote:\n> > I'm using git-1.5.3.2 and cogito-0.18.1.\n> > \n> > After I did a git-gc --prune cg-status didn't show my branches anymore.\n> > git-branch -a still showed the branches.\n> > I think that git-gc removed all files from .git/refs/heads/ except for\n> > origin. Git seams to be fine with the branches in \n> >  .git/logs/refs/heads/. \n> > \n> > So should git-gc not be used together with cogito?\n> \n>   Cogito doesn't support packed heads - I guess setting gc.packrefs to\n> false should fix the issue. Cogito should support packed tags, I guess;\n> I don't know if there's a way to make git-gc pack only tags.\n> \n\nThank you. I tried it at home too where I had an older version of git. \nWith the older git version git-gc --prune didn't disturbe cogito.\nI upgradet to git version 1.5.3.4 and tried gc.packrefs=false and it \nseams to be ok forr cogito.\n\nCheers,\nMichael\n"}]}