-
We have a certain type of files in our repository (Java .properties files) that have to be ISO-8859-1 encoded. A colleague of mine was confused by git diff showing seemingly broken characters. Now, I'd like to fix that in However, that leads (as far as I understand) to git converting all these files to UTF-8 in the index. This, in turn, leads to That would mean that I would have to stop using Not sure if this would have been better added to an issue, it's related to #6762 and #53. I don't want to spam there before getting at least some feedback as to how/where I should report. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Unfortunately, I don't think there are better workarounds for this problem. Maybe you can add temporary commit containing the "reverted" If we add support for negative sparse patterns, FWIW, I personally believe that content rewriting by VCS is misfeature, and I don't think we'll add native support for that unless there are large user base who are affected by the problem (such as the default CRLF translation of Windows Git.) |
Beta Was this translation helpful? Give feedback.
Unfortunately, I don't think there are better workarounds for this problem. Maybe you can add temporary commit containing the "reverted"
*.properties
files, but it might be tedious to work.https://jj-vcs.github.io/jj/latest/FAQ/#how-can-i-avoid-committing-my-local-only-changes-to-tracked-files
If we add support for negative sparse patterns,
*.properties
file could be excluded from thejj
's checkout, and can be managed bygit
.#1896
FWIW, I personally believe that content rewriting by VCS is misfeature, and I don't think we'll add native support for that unless there are large user base who are affected by the problem (such as the default CRLF translation of Windows Git.)