* how to ignore all .xvpics directories
@ 2008-11-03 10:11 Christoph Duelli
2008-11-03 11:49 ` Jakub Narebski
2008-11-03 13:03 ` Matthieu Moy
0 siblings, 2 replies; 4+ messages in thread
From: Christoph Duelli @ 2008-11-03 10:11 UTC (permalink / raw)
To: git
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to ignore all .xvpics directories
2008-11-03 10:11 how to ignore all .xvpics directories Christoph Duelli
@ 2008-11-03 11:49 ` Jakub Narebski
2008-11-03 12:15 ` Christoph Duelli
2008-11-03 13:03 ` Matthieu Moy
1 sibling, 1 reply; 4+ messages in thread
From: Jakub Narebski @ 2008-11-03 11:49 UTC (permalink / raw)
To: Christoph Duelli; +Cc: git
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to ignore all .xvpics directories
2008-11-03 11:49 ` Jakub Narebski
@ 2008-11-03 12:15 ` Christoph Duelli
0 siblings, 0 replies; 4+ messages in thread
From: Christoph Duelli @ 2008-11-03 12:15 UTC (permalink / raw)
To: Jakub Narebski; +Cc: git
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to ignore all .xvpics directories
2008-11-03 10:11 how to ignore all .xvpics directories Christoph Duelli
2008-11-03 11:49 ` Jakub Narebski
@ 2008-11-03 13:03 ` Matthieu Moy
1 sibling, 0 replies; 4+ messages in thread
From: Matthieu Moy @ 2008-11-03 13:03 UTC (permalink / raw)
To: Christoph Duelli; +Cc: git
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-11-03 13:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-03 10:11 how to ignore all .xvpics directories Christoph Duelli
2008-11-03 11:49 ` Jakub Narebski
2008-11-03 12:15 ` Christoph Duelli
2008-11-03 13:03 ` Matthieu Moy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox