threads / rfc / 9313

[RFC] per-user ignore file

Subject: [RFC] per-user ignore file

## tl;dr

4 messages between Jul 30, 2007 and Jul 30, 2007.

replies: 3people: 3as markdown or json

Daniel Barkalow· Jul 30, 2007, 20:28 UTC · lore

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?

	-Daniel
*This .sig left intentionally blank*
J. Bruce Fields· Jul 30, 2007, 20:36 UTC · re: Daniel Barkalow · lore

Re: [RFC] per-user ignore file

On Mon, Jul 30, 2007 at 04:28:13PM -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?
See 'man gitignore' or
http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#ignoring-files
--b.
Daniel Barkalow· Jul 30, 2007, 20:43 UTC · re: J. Bruce Fields · lore

Re: [RFC] per-user ignore file

On Mon, 30 Jul 2007, J. Bruce Fields wrote:
Show 13 quoted lines
> On Mon, Jul 30, 2007 at 04:28:13PM -0400, Daniel Barkalow wrote:
> > 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?
> 
> See 'man gitignore' or
> 
> http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#ignoring-files
Ah, I was just looking at too old versions of the documentation.
	-Daniel
*This .sig left intentionally blank*
Jan Hudec· Jul 30, 2007, 20:41 UTC · re: Daniel Barkalow · lore

Re: [RFC] per-user ignore file

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>

← back to recent threads