Re: renormalize histroy with smudge/clean-filter
- From
- Josef Wolf <jw@raven.inka.de>
- Date
- Feb 9, 2025, 17:54 UTC
- Message-ID
- <20250209175450.GO30202@raven.inka.de>
- In-Reply-To
- <20250209150924.GN30202@raven.inka.de>
Uh! It starts getting real wired.
After one more change to .gitattributes, one of the files marked as binary checks out as an EMPTY file and I can't find any git command to fix the situation:
$ cat .gitattributes # Most files in ETS ProjectStore are XML with CRLF # * text=auto eol=crlf .gitignore text .gitattributes text # Binary files # *.dat -filter -text *.dll -filter -text *.ver -filter -text *.lang -filter -text *.store -filter -text # <--- this is the problematic file *.ets5hash -filter -text # Smudge/clean filter # */B filter=etsfile */D filter=etsfile */G filter=etsfile */I filter=etsfile */P filter=etsfile */U filter=etsfile */P-* filter=etsfile
$ git diff diff --git a/gt8/ETS/Projekte/P-0113/P-0113.store b/gt8/ETS/Projekte/P-0113/P-0113.store index c33a5239..e69de29b 100755 --- a/gt8/ETS/Projekte/P-0113/P-0113.store +++ b/gt8/ETS/Projekte/P-0113/P-0113.store @@ -1 +0,0 @@ -4TamRjepVNV8F+bC4nBcBwXIymvb2IQdu0qEuMSB0o0= \ No newline at end of file $ git reset --hard HEAD is now at 6fba03d9 Fix .gitattributes again $ git diff diff --git a/gt8/ETS/Projekte/P-0113/P-0113.store b/gt8/ETS/Projekte/P-0113/P-0113.store index c33a5239..e69de29b 100755 --- a/gt8/ETS/Projekte/P-0113/P-0113.store +++ b/gt8/ETS/Projekte/P-0113/P-0113.store @@ -1 +0,0 @@ -4TamRjepVNV8F+bC4nBcBwXIymvb2IQdu0qEuMSB0o0= \ No newline at end of file $ rm -rf P-0113/ ; git checkout P-0113/ Updated 382 paths from the index $ git diff diff --git a/gt8/ETS/Projekte/P-0113/P-0113.store b/gt8/ETS/Projekte/P-0113/P-0113.store index c33a5239..e69de29b 100755 --- a/gt8/ETS/Projekte/P-0113/P-0113.store +++ b/gt8/ETS/Projekte/P-0113/P-0113.store @@ -1 +0,0 @@ -4TamRjepVNV8F+bC4nBcBwXIymvb2IQdu0qEuMSB0o0= \ No newline at end of file $ git ls-files --eol |grep P-0113.store i/none w/none attr/-text P-0113/P-0113.store i/lf w/crlf attr/text=auto eol=crlf P-0113/storeVersion $
-- Josef Wolf jw@raven.inka.de