On Monday, January 5, 2015 7:49:29 PM UTC+1, Dale Worley wrote:
> Rainer M Krug <r.m....@gmail.com <javascript:>> writes: 
> > Actually, I would like to exclude all files which have the 
> > following pattern: 
> > 
> > EnergyBalance.org[SOMETEXT] 
> > 
> > I tried 
> > 
> > EnergyBalance.org[.] 
> > EnergyBalance.org[*] 
> > 
> > but none worked. 
> I don't know what notation you're using for the "following pattern".  

Sorry about the confusion - I did not use any in particular, but you 
understood what I meant.

Be aware that Git uses "wildcard" notation.  (Maybe it can be configured 
> for other types of notation.)  

That explains - somehow I thought it would use regexp - wildcards is much 
easier in this case.

> If you mean that the "base file name" 
> (the name within the nearest containing directory) matches the regexp 
> "EnergyBalance\.org.*", the "wildcard" version is "EnergyBalance.org*". 
> If you want to exclude such files no matter what directory they are in, 
> put that line in the .gitignore of the top working directory.  If you 
> want ot exclude such files in a particular directory, put 
> "/EnergyBalance.org*" in the .gitignore of the directory. 

Thanks - that works perfectly. I went one step further and added   


so that all files of the pattern 

  basefilename: * 
  extension: org[*]

are ignored.

Just one question: why do you escape the "."? As far as I understand, it 
has no special meaning in wildcard expressions?



PS: do I have to use the web interface to reply or is there an email 
address, as I can not reply via gmane?

> Dale 

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to