See Answer: https://tex.stackexchange.com/questions/266879/latex-git-mark-differences-since-specific-commit
- Start by getting the version of a file from a previous commit, with
git show <commit>:filename.tex > tmp.tex
- Run latexpand to include possible \input and \include files
latexpand tmp.tex -o tmp_exp.tex
latexpand current_file.tex -o cur_exp.tex
- Run latexdiff to generate a new .tex file with the differences highlighted:
latexdiff tmp_exp.tex cur_exp.tex > tmpdiff.tex
- Compile tmpdiff.tex as usual.
- Install perl (padre IDE)
- Download latexdiff from: https://ctan.org/pkg/latexdiff
- Unzip content into "C:\Program Files\MiKTeX 2.9\scripts\latexdiff" or similar
Solved from Notepad++ changing the Encoding > UTF8 DOM
If using include / input it may not work properly. An workaroun is cited here, which is also an alternative to all the steps:
https://gitlab.com/git-latexdiff/git-latexdiff
Example:
python git_tex_compare ./file.tex master