Post #2114200
2025-04-24 16:29 UTC
@johanneskastl @alefunguju @forgejo A gitattributes file would be interesting, I thought for shenanigans like this you need the custom renderers, at least that's what I use to get weird files to display something useful. Would be awesome to get the same for diffs! 🤯
https://forgejo.org/docs/v10.0/admin/config-cheat-sheet/#markup-markup
Replies (1)
-
@alefunguju@mastodon.social 2025-04-24 17:02
@nobodyinperson @johanneskastl @forgejo I did use gitattributes! You can set git config options directly for Forgejo via the [git.config] section. Set 'core.attributesFile' and 'diff..textconv' there, then in the gitattributes set 'diff=' for the filetypes you want to convert like this. https://forgejo.org/docs/v10.0/admin/config-cheat-sheet/#git---config-options-gitconfig https://git-scm.com/docs/gitattributes