From: Alexey Shumkin Date: Mon, 10 Oct 2011 15:51:45 GMT Subject: Re: Git bug. gitattributes' pattern does not respect spaces in the filenames Message-ID: <20111010195145.0d1fc966@ashu.dyn.rarus.ru> In-Reply-To: <7vipnwooh1.fsf@alter.siamese.dyndns.org> > Alexey Shumkin writes: > > > As far as cp1251 and UTF-8 files are in different folders, > > it is logically enough to set pattern like > > > > /*.xml diff=utf8-to-cp1251 > > > > for the UTF-8 files. > > ... IN the directory that needs conversion and not in the other one > or at the toplevel. Problem solved, no? Oh! yes! solved! thanks! I did not take into account that each folder can have its own .gitattributes-file > > Another idea may be to use "?" in the directory part of the > pattern. Unless the directory structure is sick enough to have these > directory names: > > dir-1/utf8-file.xml > dir 1/cp1251-file.xml > > dir?1/*.xml would match the matter, so... hmm... I like more the case above :) but TMTOWTDI principle rulez thanks again