diff --git a/git-latexdiff b/git-latexdiff index 8208de5..e939ca5 100755 --- a/git-latexdiff +++ b/git-latexdiff @@ -366,6 +366,7 @@ else checkoutroot="." fi +# Checkout a subtree, without touching the index ("git checkout" would) (cd "$git_dir" && git archive --format=tar "$old" "$checkoutroot") | tar -xf - verbose_progress cd ../new || die "Cannot cd to new/"