Skip to contentSkip to conversation

how to ignore all .xvpics directories

DISCUSSION Christoph Duelli 3 participants 4 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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

Signature · 1 line
Christoph Duelli
#1 lore raw
Quoted 9 lines · Christoph Duelli

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.

Signature · 3 lines
Jakub Narebski
Poland
ShadeHawk on #git
#2 lore raw
Quoted 6 lines · Jakub Narebski
Quoted 5 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

Quoted 8 lines

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.

Signature · 1 line
Christoph Duelli
#3 lore raw
In reply to Christoph Duelli
Quoted 3 lines · Christoph Duelli

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).

Signature · 1 line
Matthieu