{"thread":{"id":"42568","subject":"[PATCH] Adds *~ to the .gitignore","startedAt":"2016-06-16T02:19:50Z","lastAt":"2016-06-16T02:19:51Z","messageCount":6,"participants":["Lars Vogel","Junio C Hamano","Jeff King"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"288847","messageId":"1465506629-16577-1-git-send-email-Lars.Vogel@vogella.com","threadId":"42568","inReplyTo":null,"subject":"[PATCH] Adds *~ to the .gitignore","fromName":"Lars Vogel","fromEmail":"lars.vogel@gmail.com","sentAt":"2016-06-09T21:10:29Z","receivedAt":"2016-06-16T02:19:50Z","isPatch":true,"sender":{"key":"lars.vogel@gmail.com","avatar":"https://avatars.githubusercontent.com/u/139910?v=4"},"body":"This helps contributors (like me) using editors which automatically create ~ copies of the changed data\n\nSigned-off-by: Lars Vogel <Lars.Vogel@vogella.com>\n---\n .gitignore | 1 +\n 1 file changed, 1 insertion(+)\n\ndiff --git a/.gitignore b/.gitignore\nindex 05cb58a..13c7403 100644\n--- a/.gitignore\n+++ b/.gitignore\n@@ -219,3 +219,4 @@\n *.pdb\n /Debug/\n /Release/\n+*~\n-- \n2.8.1\n"},{"id":"288849","messageId":"xmqqh9d2girw.fsf@gitster.mtv.corp.google.com","threadId":"42568","inReplyTo":"1465506629-16577-1-git-send-email-Lars.Vogel@vogella.com","subject":"Re: [PATCH] Adds *~ to the .gitignore","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2016-06-09T21:21:55Z","receivedAt":"2016-06-16T02:19:50Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Lars Vogel <lars.vogel@gmail.com> writes:\n\n> This helps contributors (like me) using editors which automatically create ~ copies of the changed data\n>\n> Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>\n> ---\n\nWe deliberately left this out and kept it out of .gitignore for the\npast 10 years.  The justification was that use of Emacs is merely a\npersonal choice that is better served by .git/info/excludes; we do\nnot add .swp for vim users, either, for the same reason.\n\nI personally do not care too deeply either way; I could even support\na move to add some selected small file extensions, as long as we\nsome (social) mechanism to avoid churning this file every time\nsomebody new comes and complains their favourite editor or other\ntools are not supported.\n\n\n\n>  .gitignore | 1 +\n>  1 file changed, 1 insertion(+)\n>\n> diff --git a/.gitignore b/.gitignore\n> index 05cb58a..13c7403 100644\n> --- a/.gitignore\n> +++ b/.gitignore\n> @@ -219,3 +219,4 @@\n>  *.pdb\n>  /Debug/\n>  /Release/\n> +*~\n"},{"id":"288852","messageId":"20160609213809.GA23059@sigill.intra.peff.net","threadId":"42568","inReplyTo":"xmqqh9d2girw.fsf@gitster.mtv.corp.google.com","subject":"Re: [PATCH] Adds *~ to the .gitignore","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2016-06-09T21:38:09Z","receivedAt":"2016-06-16T02:19:50Z","isPatch":true,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Thu, Jun 09, 2016 at 02:21:55PM -0700, Junio C Hamano wrote:\n\n> Lars Vogel <lars.vogel@gmail.com> writes:\n> \n> > This helps contributors (like me) using editors which automatically create ~ copies of the changed data\n> >\n> > Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>\n> > ---\n> \n> We deliberately left this out and kept it out of .gitignore for the\n> past 10 years.  The justification was that use of Emacs is merely a\n> personal choice that is better served by .git/info/excludes; we do\n> not add .swp for vim users, either, for the same reason.\n\nI think a better choice than .git/info/excludes these days is\n~/.config/git/ignore. Then it is associated with the user, not the\nproject (which seems a better fit, since it is the user who is picking\nthe editor; this should apply across all projects).\n\n-Peff\n"},{"id":"288858","messageId":"xmqqd1nqges3.fsf@gitster.mtv.corp.google.com","threadId":"42568","inReplyTo":"20160609213809.GA23059@sigill.intra.peff.net","subject":"Re: [PATCH] Adds *~ to the .gitignore","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2016-06-09T22:48:12Z","receivedAt":"2016-06-16T02:19:50Z","isPatch":true,"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, Jun 09, 2016 at 02:21:55PM -0700, Junio C Hamano wrote:\n>\n>> Lars Vogel <lars.vogel@gmail.com> writes:\n>> \n>> > This helps contributors (like me) using editors which automatically create ~ copies of the changed data\n>> >\n>> > Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>\n>> > ---\n>> \n>> We deliberately left this out and kept it out of .gitignore for the\n>> past 10 years.  The justification was that use of Emacs is merely a\n>> personal choice that is better served by .git/info/excludes; we do\n>> not add .swp for vim users, either, for the same reason.\n>\n> I think a better choice than .git/info/excludes these days is\n> ~/.config/git/ignore. Then it is associated with the user, not the\n> project (which seems a better fit, since it is the user who is picking\n> the editor; this should apply across all projects).\n\nYes, that is a better alternative you can use these days, of course.\n\nThanks.\n\nAs I said, however, I could support a move to add some selected\nsmall number of common file extensions, as long as we have some\n(social) mechanism to avoid churning this file every time somebody\nnew comes and complains their favourite editor or other tools are\nnot supported.\n"},{"id":"288860","messageId":"20160609233118.GA25709@sigill.intra.peff.net","threadId":"42568","inReplyTo":"xmqqd1nqges3.fsf@gitster.mtv.corp.google.com","subject":"Re: [PATCH] Adds *~ to the .gitignore","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2016-06-09T23:31:18Z","receivedAt":"2016-06-16T02:19:50Z","isPatch":true,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Thu, Jun 09, 2016 at 03:48:12PM -0700, Junio C Hamano wrote:\n\n> As I said, however, I could support a move to add some selected\n> small number of common file extensions, as long as we have some\n> (social) mechanism to avoid churning this file every time somebody\n> new comes and complains their favourite editor or other tools are\n> not supported.\n\nYeah, I don't mind it either, myself, provided we avoid the churn.\n\nOTOH, wouldn't somebody who cared about this want it for all of their\nprojects? I guess I just don't see the point in making this a\ngit-specific thing.\n\n-Peff\n"},{"id":"288928","messageId":"xmqq4m91ghxx.fsf@gitster.mtv.corp.google.com","threadId":"42568","inReplyTo":"20160609233118.GA25709@sigill.intra.peff.net","subject":"Re: [PATCH] Adds *~ to the .gitignore","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2016-06-10T15:52:10Z","receivedAt":"2016-06-16T02:19:51Z","isPatch":true,"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, Jun 09, 2016 at 03:48:12PM -0700, Junio C Hamano wrote:\n>\n>> As I said, however, I could support a move to add some selected\n>> small number of common file extensions, as long as we have some\n>> (social) mechanism to avoid churning this file every time somebody\n>> new comes and complains their favourite editor or other tools are\n>> not supported.\n>\n> Yeah, I don't mind it either, myself, provided we avoid the churn.\n>\n> OTOH, wouldn't somebody who cared about this want it for all of their\n> projects? I guess I just don't see the point in making this a\n> git-specific thing.\n\nMy version was \"it is your personal preference, why should we cater\nto it while we know we cannot do the same for everybody else who has\ndifferent preference?\"\n\nYour version is a lot more positive, while leading to the same\nconclusion.  \"It is your personal preference.  Even if we added it\nourselves, it would not help you with other projects\".\n\nAs usual, you are more brilliant than I am here.\n"}]}