Re: renormalize histroy with smudge/clean-filter, again

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

 



On Fri, Feb 14, 2025 at 08:21:28PM +0000, brian m. carlson wrote:
> On 2025-02-11 at 23:57:07, Josef Wolf wrote:
> > Still struggling with my filter problem.
> > 
> > Here is what I do:
> > 
> > - Set up a clean filter which enforces CRLF (yes, for this specific use
> >   case I want CRLF even on linux)
> 
> Is there a reason you can't use `eol=crlf` instead of a smudge/clean
> filter?  That looks like this in the Git repo:

Yes. Most of the data files of this (proprietary) application are XML files
using mostly CRLF, but there is also LF ancoded content. Like this:

[ ... ]
 <foo>^M
  <bar>
  fonly LF in contents of bar
  </bar>^M
 </foo>^M

In addition, it randomly shuffles the XML elements at every startup, even if
no changes are done. To prevent conflocts from this, I need to sort the XML
elements into a canonical ordering in the clean filter.

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