Open nbud opened 4 years ago
Thank for this suggestion. The suggested fix unfortunately will break on Linux. Unlike with latexdiff, with latexdiff-vc there is no real promise of operation system independence, as there is intense reliance on running system commands. I am sorry but I have zero experience with Windows powershell so cannot really commit to maintain a Windows powershell compatible version or test such a version. I am happy to accept pull requests providing Window compatibility if they don't break linux (probably this can only be achieved by initially checking what system the code is running on, and then selecting the appropriate command line) but won't test this under Windows.
Thank you for the quick reply and this great tool. So far this is the only bug I have with latexdiff-vc on Windows, so even though untested it works fairly smoothly.
Quick workaround for the record:
if exist diffnew rmdir diffnew /q /s
if exist diffold rmdir diffold /q /s
mkdir diffnew
mkdir diffold
git archive --format=tar HEAD | ( cd diffnew & tar -xf -)
git archive --format=tar 0c519c8 | ( cd diffold & tar -xf -)
latexdiff --flatten diffold/thesis.tex diffnew/thesis.tex > diffnew/thesis-diff.tex
latexmk --pdf diffnew\thesis-diff.tex
start "" /max thesis-diff.pdf
LATEXDIFF-VC 1.3.0, Windows 10, cmd and powershell
Error:
The incriminated line of latexdiff-vc is
I think replacing
cd $dirname ; tar -xf -
bycd $dirname & tar -xf -
would fix the issue on Windows, I don't know what the effect is on Linux.