{"thread":{"id":"23578","subject":"Re: multiple .gitignore and friends in same workdir possible?","startedAt":"2010-04-23T13:01:42Z","lastAt":"2010-04-23T18:29:59Z","messageCount":9,"participants":["Sverre Rabbelier","Konrad Karl","Michael J Gruber"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"140214","messageId":"y2kfabb9a1e1004230601zcede9e2ah2db8cb0f082bcbb4@mail.gmail.com","threadId":"23578","inReplyTo":"4526533254752708319@unknownmsgid","subject":"Re: multiple .gitignore and friends in same workdir possible?","fromName":"Sverre Rabbelier","fromEmail":"srabbelier@gmail.com","sentAt":"2010-04-23T13:01:42Z","receivedAt":"2010-04-23T13:01:42Z","isPatch":false,"sender":{"key":"srabbelier@gmail.com","avatar":"https://avatars.githubusercontent.com/u/3098?v=4"},"body":"Heya,\n\nOn Fri, Apr 23, 2010 at 14:46, Konrad Karl <kk_konrad@gmx.at> wrote:\n> Is this currently possible or am I missing something? It would ease\n> my task a lot.\n\nI assume that each repo has it's own gitdir, in which case it has it's\nown config file, so you could just use \"git config core.excludesfile\n.gitignore.one\"?\n\n-- \nCheers,\n\nSverre Rabbelier\n"},{"id":"140217","messageId":"7537.06050240925$1272033186@news.gmane.org","threadId":"23578","inReplyTo":"y2kfabb9a1e1004230601zcede9e2ah2db8cb0f082bcbb4@mail.gmail.com","subject":"Re: multiple .gitignore and friends in same workdir possible?","fromName":"Konrad Karl","fromEmail":"kk_konrad@gmx.at","sentAt":"2010-04-23T14:32:48Z","receivedAt":"2010-04-23T14:32:48Z","isPatch":false,"sender":{"key":"kk_konrad@gmx.at","avatar":null},"body":"Hi\n\nOn Fri, Apr 23, 2010 at 03:01:42PM +0200, Sverre Rabbelier wrote:\n> Heya,\n> \n> On Fri, Apr 23, 2010 at 14:46, Konrad Karl <kk_konrad@gmx.at> wrote:\n> > Is this currently possible or am I missing something? It would ease\n> > my task a lot.\n> \n> I assume that each repo has it's own gitdir, in which case it has it's\n> own config file, so you could just use \"git config core.excludesfile\n> .gitignore.one\"?\n\nyes I could (i confess I was not aware of this config var) but\nthe fine manual says:\n\n  In _addition_ to .gitignore (per-directory) and .git/info/exclude, \n  git looks into this file for patterns of files which are not meant to be tracked.\n\n\nso if there was some way to _not_ consider the standard .gitignore &friends\nI would be happy to live with.\n\n\nGreetings,\nKonrad\n\n> \n> -- \n> Cheers,\n> \n> Sverre Rabbelier\n"},{"id":"299246","messageId":"20100423143248.GA6930localhost","threadId":"23578","inReplyTo":"y2kfabb9a1e1004230601zcede9e2ah2db8cb0f082bcbb4@mail.gmail.com","subject":"Re: multiple .gitignore and friends in same workdir possible?","fromName":"Konrad Karl","fromEmail":"kk_konrad@gmx.at","sentAt":"2010-04-23T14:32:48Z","receivedAt":"2010-04-23T14:32:48Z","isPatch":false,"sender":{"key":"kk_konrad@gmx.at","avatar":null},"body":"Hi\n\nOn Fri, Apr 23, 2010 at 03:01:42PM +0200, Sverre Rabbelier wrote:\n> Heya,\n> \n> On Fri, Apr 23, 2010 at 14:46, Konrad Karl <kk_konrad@gmx.at> wrote:\n> > Is this currently possible or am I missing something? It would ease\n> > my task a lot.\n> \n> I assume that each repo has it's own gitdir, in which case it has it's\n> own config file, so you could just use \"git config core.excludesfile\n> .gitignore.one\"?\n\nyes I could (i confess I was not aware of this config var) but\nthe fine manual says:\n\n  In _addition_ to .gitignore (per-directory) and .git/info/exclude, \n  git looks into this file for patterns of files which are not meant to be tracked.\n\n\nso if there was some way to _not_ consider the standard .gitignore &friends\nI would be happy to live with.\n\n\nGreetings,\nKonrad\n\n> \n> -- \n> Cheers,\n> \n> Sverre Rabbelier\n"},{"id":"140218","messageId":"4BD1B3AD.50407@drmicha.warpmail.net","threadId":"23578","inReplyTo":"7537.06050240925$1272033186@news.gmane.org","subject":"Re: multiple .gitignore and friends in same workdir possible?","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2010-04-23T14:50:21Z","receivedAt":"2010-04-23T14:50:21Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Konrad Karl venit, vidit, dixit 23.04.2010 16:32:\n> Hi\n> \n> On Fri, Apr 23, 2010 at 03:01:42PM +0200, Sverre Rabbelier wrote:\n>> Heya,\n>>\n>> On Fri, Apr 23, 2010 at 14:46, Konrad Karl <kk_konrad@gmx.at> wrote:\n>>> Is this currently possible or am I missing something? It would ease\n>>> my task a lot.\n>>\n>> I assume that each repo has it's own gitdir, in which case it has it's\n>> own config file, so you could just use \"git config core.excludesfile\n>> .gitignore.one\"?\n> \n> yes I could (i confess I was not aware of this config var) but\n> the fine manual says:\n> \n>   In _addition_ to .gitignore (per-directory) and .git/info/exclude, \n>   git looks into this file for patterns of files which are not meant to be tracked.\n> \n> \n> so if there was some way to _not_ consider the standard .gitignore &friends\n> I would be happy to live with.\n\nIf you control the creation of the repos, why don't you simply leave the\nstandard .gitignore empty and use the config as suggested by Sverre?\n\nMichael\n"},{"id":"140220","messageId":"16960.9152632349$1272035032@news.gmane.org","threadId":"23578","inReplyTo":"4BD1B3AD.50407@drmicha.warpmail.net","subject":"Re: multiple .gitignore and friends in same workdir possible?","fromName":"Konrad Karl","fromEmail":"kk_konrad@gmx.at","sentAt":"2010-04-23T15:03:38Z","receivedAt":"2010-04-23T15:03:38Z","isPatch":false,"sender":{"key":"kk_konrad@gmx.at","avatar":null},"body":"On Fri, Apr 23, 2010 at 04:50:21PM +0200, Michael J Gruber wrote:\n> Konrad Karl venit, vidit, dixit 23.04.2010 16:32:\n> > Hi\n> > \n> > On Fri, Apr 23, 2010 at 03:01:42PM +0200, Sverre Rabbelier wrote:\n> >> Heya,\n> >>\n[ ...... ]\n> > so if there was some way to _not_ consider the standard .gitignore &friends\n> > I would be happy to live with.\n> \n> If you control the creation of the repos, why don't you simply leave the\n> standard .gitignore empty and use the config as suggested by Sverre?\n\nBecause this information does not getting transfered with git clone.\n\nPeople have the chance to forget to set this variable after cloning the\nsource repo and they will. \n\nKonrad\n\n> \n> Michael\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n"},{"id":"299247","messageId":"20100423150338.GA26487localhost","threadId":"23578","inReplyTo":"4BD1B3AD.50407@drmicha.warpmail.net","subject":"Re: multiple .gitignore and friends in same workdir possible?","fromName":"Konrad Karl","fromEmail":"kk_konrad@gmx.at","sentAt":"2010-04-23T15:03:38Z","receivedAt":"2010-04-23T15:03:38Z","isPatch":false,"sender":{"key":"kk_konrad@gmx.at","avatar":null},"body":"On Fri, Apr 23, 2010 at 04:50:21PM +0200, Michael J Gruber wrote:\n> Konrad Karl venit, vidit, dixit 23.04.2010 16:32:\n> > Hi\n> > \n> > On Fri, Apr 23, 2010 at 03:01:42PM +0200, Sverre Rabbelier wrote:\n> >> Heya,\n> >>\n[ ...... ]\n> > so if there was some way to _not_ consider the standard .gitignore &friends\n> > I would be happy to live with.\n> \n> If you control the creation of the repos, why don't you simply leave the\n> standard .gitignore empty and use the config as suggested by Sverre?\n\nBecause this information does not getting transfered with git clone.\n\nPeople have the chance to forget to set this variable after cloning the\nsource repo and they will. \n\nKonrad\n\n> \n> Michael\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n"},{"id":"140224","messageId":"4BD1C1F6.9070908@drmicha.warpmail.net","threadId":"23578","inReplyTo":"16960.9152632349$1272035032@news.gmane.org","subject":"Re: multiple .gitignore and friends in same workdir possible?","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2010-04-23T15:51:18Z","receivedAt":"2010-04-23T15:51:18Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Konrad Karl venit, vidit, dixit 23.04.2010 17:03:\n> On Fri, Apr 23, 2010 at 04:50:21PM +0200, Michael J Gruber wrote:\n>> Konrad Karl venit, vidit, dixit 23.04.2010 16:32:\n>>> Hi\n>>>\n>>> On Fri, Apr 23, 2010 at 03:01:42PM +0200, Sverre Rabbelier wrote:\n>>>> Heya,\n>>>>\n> [ ...... ]\n>>> so if there was some way to _not_ consider the standard .gitignore &friends\n>>> I would be happy to live with.\n>>\n>> If you control the creation of the repos, why don't you simply leave the\n>> standard .gitignore empty and use the config as suggested by Sverre?\n> \n> Because this information does not getting transfered with git clone.\n> \n> People have the chance to forget to set this variable after cloning the\n> source repo and they will. \n\n...and the same is true for setting GIT_DIR appropriately for each repo\n- people will commit to the wrong repo, which is even worse. That's why\nit's a fragile approach to begin with. Is there no chance you could put\nthose libs in subdirs and use git modules?\n\nMichael\n"},{"id":"140230","messageId":"12580.8595716537$1272047426@news.gmane.org","threadId":"23578","inReplyTo":"4BD1C1F6.9070908@drmicha.warpmail.net","subject":"Re: multiple .gitignore and friends in same workdir possible?","fromName":"Konrad Karl","fromEmail":"kk_konrad@gmx.at","sentAt":"2010-04-23T18:29:59Z","receivedAt":"2010-04-23T18:29:59Z","isPatch":false,"sender":{"key":"kk_konrad@gmx.at","avatar":null},"body":"On Fri, Apr 23, 2010 at 05:51:18PM +0200, Michael J Gruber wrote:\n> Konrad Karl venit, vidit, dixit 23.04.2010 17:03:\n> > On Fri, Apr 23, 2010 at 04:50:21PM +0200, Michael J Gruber wrote:\n> >> Konrad Karl venit, vidit, dixit 23.04.2010 16:32:\n> >>> Hi\n> >>>\n> >>> On Fri, Apr 23, 2010 at 03:01:42PM +0200, Sverre Rabbelier wrote:\n> .........\n> > Because this information does not getting transfered with git clone.\n> > \n> > People have the chance to forget to set this variable after cloning the\n> > source repo and they will. \n> \n> ...and the same is true for setting GIT_DIR appropriately for each repo\n> - people will commit to the wrong repo, which is even worse. That's why\n> it's a fragile approach to begin with. Is there no chance you could put\n> those libs in subdirs and use git modules?\n\nthe chance exists for the future but the existing build system does not\nsupport it (especially for older releases which I would like to be able\nto rebuild as is).\n\nI think a script with a prominent name in the  workdir which will set \nthe git variable  will be the next convenient solution which we can live with.\n\nthanks for your input,\nKonrad\n\n> \n> Michael\n"},{"id":"299248","messageId":"20100423182959.GA1178localhost","threadId":"23578","inReplyTo":"4BD1C1F6.9070908@drmicha.warpmail.net","subject":"Re: multiple .gitignore and friends in same workdir possible?","fromName":"Konrad Karl","fromEmail":"kk_konrad@gmx.at","sentAt":"2010-04-23T18:29:59Z","receivedAt":"2010-04-23T18:29:59Z","isPatch":false,"sender":{"key":"kk_konrad@gmx.at","avatar":null},"body":"On Fri, Apr 23, 2010 at 05:51:18PM +0200, Michael J Gruber wrote:\n> Konrad Karl venit, vidit, dixit 23.04.2010 17:03:\n> > On Fri, Apr 23, 2010 at 04:50:21PM +0200, Michael J Gruber wrote:\n> >> Konrad Karl venit, vidit, dixit 23.04.2010 16:32:\n> >>> Hi\n> >>>\n> >>> On Fri, Apr 23, 2010 at 03:01:42PM +0200, Sverre Rabbelier wrote:\n> .........\n> > Because this information does not getting transfered with git clone.\n> > \n> > People have the chance to forget to set this variable after cloning the\n> > source repo and they will. \n> \n> ...and the same is true for setting GIT_DIR appropriately for each repo\n> - people will commit to the wrong repo, which is even worse. That's why\n> it's a fragile approach to begin with. Is there no chance you could put\n> those libs in subdirs and use git modules?\n\nthe chance exists for the future but the existing build system does not\nsupport it (especially for older releases which I would like to be able\nto rebuild as is).\n\nI think a script with a prominent name in the  workdir which will set \nthe git variable  will be the next convenient solution which we can live with.\n\nthanks for your input,\nKonrad\n\n> \n> Michael\n"}]}