Using git latexdiff
- allows using “latexdiff” between two git commits
- the help section
git latexdiff -his useful - example command that worked for me while diff-ing
1git latexdiff --bibtex \ 2 --ignore-latex-errors \ 3 --ignore-makefile \ 4 --prepare "make clean && sleep 5 && make -k all && sleep 5" \ 5 --whole-tree \ 6 -o diff.pdf \ 7 --append-textcmd="Comment" \ 8 --append-textcmd="LComment" \ 9 --append-textcmd="title" \ 10 --main paper.tex <old-commit> <new-commit>--ignore-makefileignores the existing makefile- instead use
--prepareto run make/generate the required files --bibtexshows changes in bibliography--whole-treechecks out entire git tree in temporary directories--append-textcmd="<command>"allows latexdiff texts formatted by custom<command>s to be diff-ed
Links