git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] per-user ignore file
@ 2007-07-30 20:28 Daniel Barkalow
  2007-07-30 20:36 ` J. Bruce Fields
  2007-07-30 20:41 ` Jan Hudec
  0 siblings, 2 replies; 4+ messages in thread
From: Daniel Barkalow @ 2007-07-30 20:28 UTC (permalink / raw)
  To: git

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*

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [RFC] per-user ignore file
  2007-07-30 20:28 [RFC] per-user ignore file Daniel Barkalow
@ 2007-07-30 20:36 ` J. Bruce Fields
  2007-07-30 20:43   ` Daniel Barkalow
  2007-07-30 20:41 ` Jan Hudec
  1 sibling, 1 reply; 4+ messages in thread
From: J. Bruce Fields @ 2007-07-30 20:36 UTC (permalink / raw)
  To: Daniel Barkalow; +Cc: git

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

--b.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [RFC] per-user ignore file
  2007-07-30 20:28 [RFC] per-user ignore file Daniel Barkalow
  2007-07-30 20:36 ` J. Bruce Fields
@ 2007-07-30 20:41 ` Jan Hudec
  1 sibling, 0 replies; 4+ messages in thread
From: Jan Hudec @ 2007-07-30 20:41 UTC (permalink / raw)
  To: Daniel Barkalow; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 1056 bytes --]

On Mon, Jul 30, 2007 at 16:28:13 -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?

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>

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [RFC] per-user ignore file
  2007-07-30 20:36 ` J. Bruce Fields
@ 2007-07-30 20:43   ` Daniel Barkalow
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel Barkalow @ 2007-07-30 20:43 UTC (permalink / raw)
  To: J. Bruce Fields; +Cc: git

On Mon, 30 Jul 2007, J. Bruce Fields wrote:

> 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*

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-07-30 20:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-30 20:28 [RFC] per-user ignore file Daniel Barkalow
2007-07-30 20:36 ` J. Bruce Fields
2007-07-30 20:43   ` Daniel Barkalow
2007-07-30 20:41 ` Jan Hudec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).