Re: renormalize histroy with smudge/clean-filter, again
- From
- Josef Wolf <jw@raven.inka.de>
- Date
- Feb 14, 2025, 20:55 UTC
- Message-ID
- <20250214205513.GU30202@raven.inka.de>
- In-Reply-To
- <Z6-lyJNvXHhrVXhg@tapette.crustytoothpaste.net>
On Fri, Feb 14, 2025 at 08:21:28PM +0000, brian m. carlson wrote:
Show 10 quoted lines
> 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@raven.inka.de