From: Josef Wolf Date: Fri, 14 Feb 2025 20:55:13 GMT Subject: Re: renormalize histroy with smudge/clean-filter, again Message-ID: <20250214205513.GU30202@raven.inka.de> In-Reply-To: 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: [ ... ] ^M fonly LF in contents of bar ^M ^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@raven.inka.de