Browse Source

More examples. Fixes #23.

Examples are not in the README, but I'd rather avoid duplicating
stuff, hence keep everything in the script.
master
Matthieu Moy 7 years ago
parent
commit
af0ff25282
  1. 1
      Makefile
  2. 12
      git-latexdiff

1
Makefile

@ -40,6 +40,7 @@ git-latexdiff.txt: git-latexdiff git-latexdiff.txt.header
( cat git-latexdiff.txt.header ; \
printf '%s\n' ------------ ; \
./git-latexdiff --help ; \
echo ; \
./git-latexdiff --help-examples ; \
printf '%s\n' ------------ ) > $@

12
git-latexdiff

@ -148,6 +148,18 @@ examples () {
cat <<EOF
Examples:
Diff the previous revision with the latest commit:
git latexdiff HEAD^
Diff the latest commit with the working tree:
git latexdiff HEAD --
Diff latest commit with branch master:
git latexdiff master HEAD
Pass --type=CHANGEBAR to latexdiff to get changebars in the margins
instead of red+trike/blue+underline diff:

Loading…
Cancel
Save