From fbc66bf288141053f11d7174e43669f8667c9cb8 Mon Sep 17 00:00:00 2001 From: Matthieu Moy Date: Mon, 25 Mar 2013 10:31:00 +0100 Subject: [PATCH] Link possibly unversionned files to temporary directory From: Sebastian Hofer --- git-latexdiff | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/git-latexdiff b/git-latexdiff index 824069e..a422277 100755 --- a/git-latexdiff +++ b/git-latexdiff @@ -253,9 +253,13 @@ verbose_done verbose "Checking out old and new version" cd old || die "Cannot cd to old/" +# in case the work directory contained uncommited important files +ln -s -t . "$initial_dir"/* + git --git-dir="$git_dir" --work-tree=. checkout "$old" -- . || die "checkout failed for old/" verbose_progress cd ../new || die "Cannot cd to new/" +ln -s -t . "$initial_dir"/* git --git-dir="$git_dir" --work-tree=. checkout "$new" -- . || die "checkout failed for new/" verbose_progress cd ..