From a78cbfbc6a2f50be6d4c573d217d3543ede0f059 Mon Sep 17 00:00:00 2001 From: Matthieu Moy Date: Mon, 11 Nov 2013 22:21:56 +0100 Subject: [PATCH] explain why we use git archive --- git-latexdiff | 1 + 1 file changed, 1 insertion(+) 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/"