threads / discuss / 16150

how to ignore all .xvpics directories

Subject: how to ignore all .xvpics directories

## tl;dr

4 messages between Nov 3, 2008 and Nov 3, 2008.

replies: 3people: 3as markdown or json

Christoph Duelli· Nov 3, 2008, 10:11 UTC · lore

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· Nov 3, 2008, 11:49 UTC · re: Christoph Duelli · lore

Re: how to ignore all .xvpics directories

Christoph Duelli <duelli@melosgmbh.de> writes:
Show 9 quoted lines
> 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· Nov 3, 2008, 12:15 UTC · re: Jakub Narebski · lore

Re: how to ignore all .xvpics directories

Jakub Narebski schrieb:
Show 14 quoted lines
>> [ 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· Nov 3, 2008, 13:03 UTC · re: Christoph Duelli · lore

Re: how to ignore all .xvpics directories

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

← back to recent threads