git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Adds *~ to the .gitignore

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 9, 2016, 22:48 UTC
Message-ID
<xmqqd1nqges3.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20160609213809.GA23059@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 18 quoted lines
> On Thu, Jun 09, 2016 at 02:21:55PM -0700, Junio C Hamano wrote:
>
>> Lars Vogel <lars.vogel@gmail.com> writes:
>> 
>> > This helps contributors (like me) using editors which automatically create ~ copies of the changed data
>> >
>> > Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
>> > ---
>> 
>> We deliberately left this out and kept it out of .gitignore for the
>> past 10 years.  The justification was that use of Emacs is merely a
>> personal choice that is better served by .git/info/excludes; we do
>> not add .swp for vim users, either, for the same reason.
>
> I think a better choice than .git/info/excludes these days is
> ~/.config/git/ignore. Then it is associated with the user, not the
> project (which seems a better fit, since it is the user who is picking
> the editor; this should apply across all projects).
Yes, that is a better alternative you can use these days, of course.
Thanks.

As I said, however, I could support a move to add some selected small number of common file extensions, as long as we have some (social) mechanism to avoid churning this file every time somebody new comes and complains their favourite editor or other tools are not supported.

Previous: Jeff KingNext: Jeff King
Message 4 of 6 in “Adds *~ to the .gitignore”
  1. Adds *~ to the .gitignoreLars Vogel, Jun 9, 2016
  2. Junio C HamanoJun 9, 2016
  3. Jeff KingJun 9, 2016
  4. Junio C HamanoJun 9, 2016
  5. Jeff KingJun 9, 2016
  6. Junio C HamanoJun 10, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.