# how to ignore all .xvpics directories

4 messages from 2008-11-03 to 2008-11-03. Participants: Christoph Duelli, Jakub Narebski, Matthieu Moy.
Thread: https://gitlist.dev/t/16150

## Christoph Duelli, 2008-11-03 10:11

Subject: how to ignore all .xvpics directories
Message-ID: <490ECE54.5090505@melosgmbh.de>
URL: https://gitlist.dev/e/490ECE54.5090505%40melosgmbh.de

```
Is it possible to ignore (once and for all) that directories like .pics 
or .xvpics (that might occur all over the place where xv was called) 
should be ignored?

[ Note: some time ago this issue has already popped up:
http://thread.gmane.org/gmane.comp.version-control.git/50504

However, adding a line with just .xvpics in the toplevel .gitignore does 
not help. Neither does /**/.xvpics
]

Best regards
-- 
Christoph Duelli

```

## Jakub Narebski, 2008-11-03 11:49

Subject: Re: how to ignore all .xvpics directories
Message-ID: <m3d4hdf2qp.fsf@localhost.localdomain>
URL: https://gitlist.dev/e/m3d4hdf2qp.fsf%40localhost.localdomain
In-Reply-To: <490ECE54.5090505@melosgmbh.de>

```
Christoph Duelli <duelli@melosgmbh.de> writes:

> Is it possible to ignore (once and for all) that directories like
> .pics or .xvpics (that might occur all over the place where xv was
> called) should be ignored?
> 
> [ Note: some time ago this issue has already popped up:
> http://thread.gmane.org/gmane.comp.version-control.git/50504
> 
> However, adding a line with just .xvpics in the toplevel .gitignore
> does not help. Neither does /**/.xvpics

Could you reproduce the steps you tried? Because I have checked, and
putting .xvpics or .xvpics/ in top level .gitignore (or in
.git/info/excludes, or ~/.gitignore) works as expected: filename
without '/' in it is match agains _basename_.

Note that .gitignore is about contents which is not tracked (not known
to git). If you added .xvpics to commit by accident, .gitignore will
do nothing then.

-- 
Jakub Narebski
Poland
ShadeHawk on #git

```

## Christoph Duelli, 2008-11-03 12:15

Subject: Re: how to ignore all .xvpics directories
Message-ID: <490EEB68.3040009@melosgmbh.de>
URL: https://gitlist.dev/e/490EEB68.3040009%40melosgmbh.de
In-Reply-To: <m3d4hdf2qp.fsf@localhost.localdomain>

```
Jakub Narebski schrieb:
>> [ Note: some time ago this issue has already popped up:
>> http://thread.gmane.org/gmane.comp.version-control.git/50504
>>
>> However, adding a line with just .xvpics in the toplevel .gitignore
>> does not help. Neither does /**/.xvpics
> 
> Could you reproduce the steps you tried? Because I have checked, and
> putting .xvpics or .xvpics/ in top level .gitignore (or in
> .git/info/excludes, or ~/.gitignore) works as expected: filename
> without '/' in it is match agains _basename_.
> 
> Note that .gitignore is about contents which is not tracked (not known
> to git). If you added .xvpics to commit by accident, .gitignore will
> do nothing then.
Thank you Jakub,

I checked that and indeed... someone left uncomitted changes (i.e. 
deleted those (acc. commited) files without committing) and got me confused.
It *does* work for untracked files.

Sorry for the noise.

-- 
Christoph Duelli

```

## Matthieu Moy, 2008-11-03 13:03

Subject: Re: how to ignore all .xvpics directories
Message-ID: <vpqabchkll1.fsf@bauges.imag.fr>
URL: https://gitlist.dev/e/vpqabchkll1.fsf%40bauges.imag.fr
In-Reply-To: <490ECE54.5090505@melosgmbh.de>

```
Christoph Duelli <duelli@melosgmbh.de> writes:

> Is it possible to ignore (once and for all) that directories like
> .pics or .xvpics (that might occur all over the place where xv was
> called) should be ignored?

in ~/.gitconfig:

[core]
        excludesfile = /home/yourlogin/.gitignore

then, in ~/.gitignore:

.xvpics

and all your .xvpics will be ignored for all your projects.

(it's nice to keep such ignore list user-wide and not project-wide if
you don't want to bother your collaborators with your choice of
software).

-- 
Matthieu

```
