Browse Source

* Added support for diffing against current working directory:

> git-latexdiff <commit> --
master
Sebastian Hofer 12 years ago
parent
commit
9dd0ec0478
  1. 3
      git-latexdiff

3
git-latexdiff

@ -260,7 +260,10 @@ git --git-dir="$git_dir" --work-tree=. checkout "$old" -- . || die "checkout fai
verbose_progress verbose_progress
cd ../new || die "Cannot cd to new/" cd ../new || die "Cannot cd to new/"
ln -s -t . "$initial_dir"/* ln -s -t . "$initial_dir"/*
if test "$new" != "--"; then
# if new == "--" then diff working dir
git --git-dir="$git_dir" --work-tree=. checkout "$new" -- . || die "checkout failed for new/" git --git-dir="$git_dir" --work-tree=. checkout "$new" -- . || die "checkout failed for new/"
fi
verbose_progress verbose_progress
cd .. cd ..

Loading…
Cancel
Save