Re: renormalize histroy with smudge/clean-filter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Torsten,

On Sun, Feb 09, 2025 at 12:14:06PM +0100, Torsten Bögershausen wrote:
> On Sun, Feb 09, 2025 at 10:25:14AM +0100, Josef Wolf wrote:

> > This application stores the bulk of the data as text files and XML files with
> > CRLF. But there are also some binary files. So I set gitattributes like this:
> >
> >    # Catch bulk as text=crlf, rely on git to detect binary
> >    */*     text=auto eol=crlf
> > 
> This looks a little bit strange to me.

This should match all files in directories one level deeper than the directory
where .gitattributes live:

   If there is a separator at the beginning or middle (or both) of the pattern,
   then the pattern is relative to the directory level of the particular
   .gitignore file itself.

> What happens if you replace "*/*" with "*" like this.
> *     text=auto eol=crlf

Same result, but when I commit .gitattributes, I get a warning that git will
do lf->crl conversion. But even after commit, no conversion is done and
git-ls-files still shows:

   i/lf    w/lf    attr/text=auto eol=crlf gt8/ETS/Projekte/.gitignore

Only after removal followed by "git reset --hard", I get:

   i/lf    w/lfcr  attr/text=auto eol=crlf gt8/ETS/Projekte/.gitignore

> >    #
> >    # those are known to be text=crlf
> >    */B     text eol=crlf
> >    */P-*   text eol=crlf
> Same here. What is B ? Is it a directory ?

No. It is one of the XML files I want to smudge+clean

-- 
Josef Wolf
jw@xxxxxxxxxxxxx




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux