{"thread":{"id":"6831","subject":"User-wide ignore list","startedAt":"2007-02-15T10:20:24Z","lastAt":"2007-02-15T15:23:28Z","messageCount":11,"participants":["Matthieu Moy","Johannes Schindelin","Nguyen Thai Ngoc Duy","Andy Parkins","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"34690","messageId":"vpq4ppnvi1j.fsf@olympe.imag.fr","threadId":"6831","inReplyTo":null,"subject":"User-wide ignore list","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@imag.fr","sentAt":"2007-02-15T10:20:24Z","receivedAt":"2007-02-15T10:20:24Z","isPatch":false,"sender":{"key":"git@matthieu-moy.fr","avatar":"https://avatars.githubusercontent.com/u/14709?v=4"},"body":"Hi,\n\nIs there a way to have a per-user ignore list in git?\n\nI'd like to ignore once and for all the backup files of my editor\n(*~), which are not necessarily relevant to a project, but definitely\nrelevant for me regardless of the project.\n\nThanks,\n\n-- \nMatthieu\n"},{"id":"34695","messageId":"Pine.LNX.4.63.0702151152320.22628@wbgn013.biozentrum.uni-wuerzburg.de","threadId":"6831","inReplyTo":"vpq4ppnvi1j.fsf@olympe.imag.fr","subject":"Re: User-wide ignore list","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-02-15T10:52:58Z","receivedAt":"2007-02-15T10:52:58Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Thu, 15 Feb 2007, Matthieu Moy wrote:\n\n> Is there a way to have a per-user ignore list in git?\n\nIt's not really per user, but how about doing it with templates?\n\nCiao,\nDscho\n"},{"id":"34696","messageId":"fcaeb9bf0702150300g2781cb98u160f28086cd69ecb@mail.gmail.com","threadId":"6831","inReplyTo":"Pine.LNX.4.63.0702151152320.22628@wbgn013.biozentrum.uni-wuerzburg.de","subject":"Re: User-wide ignore list","fromName":"Nguyen Thai Ngoc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2007-02-15T11:00:23Z","receivedAt":"2007-02-15T11:00:23Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On 2/15/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:\n> Hi,\n>\n> On Thu, 15 Feb 2007, Matthieu Moy wrote:\n>\n> > Is there a way to have a per-user ignore list in git?\n>\n> It's not really per user, but how about doing it with templates?\n\nTemplates have no effect on previously created git repositories, does it?\n-- \nDuy\n"},{"id":"34697","messageId":"vpqabzfsn1b.fsf@olympe.imag.fr","threadId":"6831","inReplyTo":"Pine.LNX.4.63.0702151152320.22628@wbgn013.biozentrum.uni-wuerzburg.de","subject":"Re: User-wide ignore list","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@imag.fr","sentAt":"2007-02-15T11:00:48Z","receivedAt":"2007-02-15T11:00:48Z","isPatch":false,"sender":{"key":"git@matthieu-moy.fr","avatar":"https://avatars.githubusercontent.com/u/14709?v=4"},"body":"Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:\n\n> Hi,\n>\n> On Thu, 15 Feb 2007, Matthieu Moy wrote:\n>\n>> Is there a way to have a per-user ignore list in git?\n>\n> It's not really per user, but how about doing it with templates?\n\nCorrect me if I'm wrong (I didn't really find a documentation for\ntemplates), but I believe this would only apply to newly created\nproject. Then, it doesn't apply if I clone the project of someone\nusing another editor for example, nor to my old projects if I add\nsomething to the list of things I want to ignore.\n\n-- \nMatthieu\n"},{"id":"34698","messageId":"200702151112.06729.andyparkins@gmail.com","threadId":"6831","inReplyTo":"vpq4ppnvi1j.fsf@olympe.imag.fr","subject":"Re: User-wide ignore list","fromName":"Andy Parkins","fromEmail":"andyparkins@gmail.com","sentAt":"2007-02-15T11:12:04Z","receivedAt":"2007-02-15T11:12:04Z","isPatch":false,"sender":{"key":"andyparkins@gmail.com","avatar":null},"body":"On Thursday 2007 February 15 10:20, Matthieu Moy wrote:\n\n> Is there a way to have a per-user ignore list in git?\n\nYep; in repository-layout.txt it says:\n\ninfo/exclude::\n    This file, by convention among Porcelains, stores the\n    exclude pattern list. `.gitignore` is the per-directory\n    ignore file.  `git status`, `git add`, `git rm` and `git\n    clean` look at it but the core git commands do not look\n    at it.  See also: gitlink:git-ls-files[1] `--exclude-from`\n    and `--exclude-per-directory`.\n\n\nAndy\n-- \nDr Andy Parkins, M Eng (hons), MIEE\nandyparkins@gmail.com\n"},{"id":"34701","messageId":"7vmz3fd5ea.fsf@assigned-by-dhcp.cox.net","threadId":"6831","inReplyTo":"Pine.LNX.4.63.0702151152320.22628@wbgn013.biozentrum.uni-wuerzburg.de","subject":"Re: User-wide ignore list","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2007-02-15T11:30:53Z","receivedAt":"2007-02-15T11:30:53Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:\n\n> Hi,\n>\n> On Thu, 15 Feb 2007, Matthieu Moy wrote:\n>\n>> Is there a way to have a per-user ignore list in git?\n>\n> It's not really per user, but how about doing it with templates?\n\nIt might be an option to introduce a configuration variable that\npoints at a file to be used in addition to $GIT_DIR/info/exclude.\nThen you can set that variable in ~/.gitconfig.\n"},{"id":"34702","messageId":"Pine.LNX.4.63.0702151225130.22628@wbgn013.biozentrum.uni-wuerzburg.de","threadId":"6831","inReplyTo":"vpqabzfsn1b.fsf@olympe.imag.fr","subject":"Re: User-wide ignore list","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-02-15T11:37:20Z","receivedAt":"2007-02-15T11:37:20Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\n[Cc'ed Duy, as he raised the same concerns.]\n\nOn Thu, 15 Feb 2007, Matthieu Moy wrote:\n\n> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:\n> \n> > On Thu, 15 Feb 2007, Matthieu Moy wrote:\n> >\n> >> Is there a way to have a per-user ignore list in git?\n> >\n> > It's not really per user, but how about doing it with templates?\n> \n> Correct me if I'm wrong (I didn't really find a documentation for \n> templates), but I believe this would only apply to newly created \n> project.\n\nYes. However, you can safely call \"git init\" in an _existing_ repo. It \ndoes not overwrite existing files.\n \n> Then, it doesn't apply if I clone the project of someone using another \n> editor for example, nor to my old projects if I add something to the \n> list of things I want to ignore.\n\n\"git clone\" implicitly calls \"git init\"; Therefore you get the templates, \ntoo. But you're right, if you already edited .git/info/exclude, this will \nnot overwrite it.\n\nOf course, you could fiddle with ~/.gitconfig, or even ~/.gitignore, but I \nsuggest that you first think about a sane syntax.\n\nAlso note that this opens the door for shooting-in-the-foot; files you are \ncertain you want ignored can show up in a cloned repo all to easy.\n\nCiao,\nDscho\n"},{"id":"34704","messageId":"Pine.LNX.4.63.0702151259270.22628@wbgn013.biozentrum.uni-wuerzburg.de","threadId":"6831","inReplyTo":"200702151112.06729.andyparkins@gmail.com","subject":"Re: User-wide ignore list","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-02-15T11:59:44Z","receivedAt":"2007-02-15T11:59:44Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Thu, 15 Feb 2007, Andy Parkins wrote:\n\n> On Thursday 2007 February 15 10:20, Matthieu Moy wrote:\n> \n> > Is there a way to have a per-user ignore list in git?\n> \n> Yep; in repository-layout.txt it says:\n> \n> info/exclude::\n\nNope. This is per-repo, not per-user.\n\nHth,\nDscho\n"},{"id":"34707","messageId":"200702151306.33865.andyparkins@gmail.com","threadId":"6831","inReplyTo":"Pine.LNX.4.63.0702151259270.22628@wbgn013.biozentrum.uni-wuerzburg.de","subject":"Re: User-wide ignore list","fromName":"Andy Parkins","fromEmail":"andyparkins@gmail.com","sentAt":"2007-02-15T13:06:24Z","receivedAt":"2007-02-15T13:06:24Z","isPatch":false,"sender":{"key":"andyparkins@gmail.com","avatar":null},"body":"On Thursday 2007 February 15 11:59, Johannes Schindelin wrote:\n\n> > info/exclude::\n>\n> Nope. This is per-repo, not per-user.\n\nSilly me; I forgot to write the last bit of my email :-)\n\n$ ln -sf $HOME/.git/exclude $GIT_DIR/info/exclude\n\nDo that in each of your working checkouts and voila.\n\n\nAndy\n\n-- \nDr Andy Parkins, M Eng (hons), MIEE\nandyparkins@gmail.com\n"},{"id":"34709","messageId":"fcaeb9bf0702150556l6b5f2779re502d9fcee21bac1@mail.gmail.com","threadId":"6831","inReplyTo":"Pine.LNX.4.63.0702151225130.22628@wbgn013.biozentrum.uni-wuerzburg.de","subject":"Re: User-wide ignore list","fromName":"Nguyen Thai Ngoc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2007-02-15T13:56:00Z","receivedAt":"2007-02-15T13:56:00Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On 2/15/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:\n> Yes. However, you can safely call \"git init\" in an _existing_ repo. It\n> does not overwrite existing files.\n\nOh.. that's enough for me :-)\n-- \nDuy\n"},{"id":"34711","messageId":"Pine.LNX.4.63.0702151620310.22628@wbgn013.biozentrum.uni-wuerzburg.de","threadId":"6831","inReplyTo":"200702151306.33865.andyparkins@gmail.com","subject":"Re: User-wide ignore list","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-02-15T15:23:28Z","receivedAt":"2007-02-15T15:23:28Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Thu, 15 Feb 2007, Andy Parkins wrote:\n\n> On Thursday 2007 February 15 11:59, Johannes Schindelin wrote:\n> \n> > > info/exclude::\n> >\n> > Nope. This is per-repo, not per-user.\n> \n> Silly me; I forgot to write the last bit of my email :-)\n> \n> $ ln -sf $HOME/.git/exclude $GIT_DIR/info/exclude\n> \n> Do that in each of your working checkouts and voila.\n\n... and next time you edit .git/info/exclude, be very surprised that other \nrepos have the change, too.\n\nCiao,\nDscho\n"}]}