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

Re: [RFC] per-user ignore file

From
JHJan Hudec <bulb@ucw.cz>
Date
Jul 30, 2007, 20:41 UTC
Message-ID
<20070730204143.GA8209@efreet.light.src>
In-Reply-To
<Pine.LNX.4.64.0707301612160.8054@iabervon.org>
On Mon, Jul 30, 2007 at 16:28:13 -0400, Daniel Barkalow wrote:
Show 8 quoted lines
> It would be nice to have a per-user ignore file, so that emacs users can 
> ignore "*~", "#*#", and ".#*". Probably this should be in the form of 
> having a config option for additional ignore file names, so that the user 
> can decide where to put it. (E.g., ~/.gitignore would be an issue if the 
> user is tracking their home directory with git and wants to ignore some 
> files in the home directory repository but track similarly named files in 
> some other repository). Are there any fundamental issues with this, or is 
> it just that nobody's been sufficiently motivated to do it?
I believe the later. Though I also believe it would be useful.

An alternative to separate file would be to include it into .gitconfig as multi-valued key. Something like:

[core] ignore = *~ ignore = #*# ignore = .#* ignore = .*.sw[nop]

and so on. Could be reused in .git/config as replacement for .git/info/exclude if desired.

-- 
						 Jan 'Bulb' Hudec <bulb@ucw.cz>
Previous: Daniel Barkalow
Message 4 of 4 in “[RFC] per-user ignore file”
  1. Daniel BarkalowJul 30, 2007
  2. J. Bruce FieldsJul 30, 2007
  3. Daniel BarkalowJul 30, 2007
  4. Jan HudecJul 30, 2007

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.