Transforming xml to pretty form in command prompt. The arguments adapted for textconv as required for .git/config.
Simple wrapper for pretty-data
npm package.
Required npm
and nodejs
installed.
npm install pretty-xml-textconv --global
Can be used to transform from command prompt.
pretty-xml-textconv file.xml >> out.txt
For implementation in all git repositories use:
git config --global diff.xml.textconv pretty-xml-textconv
In particular project include lines in .gitattributes:
*.xml diff=xml
Evgeny Metelkin @metelkin