]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
gitconfig: Allow diffing of PDF files.
authorSimon Ruderich <simon@ruderich.org>
Mon, 5 Jul 2010 19:12:21 +0000 (21:12 +0200)
committerSimon Ruderich <simon@ruderich.org>
Mon, 5 Jul 2010 19:12:21 +0000 (21:12 +0200)
gitconfig.m4

index 0cfd46a42972116a17be86ba294d8b081d38130d..f0e268dc5e5c9a4a3a953da6dc473d0a4530c60a 100644 (file)
@@ -56,6 +56,11 @@ include(../lib.m4)
        # Detect copies and renames.
        renames = copy
 
+# Allow diffing of PDF files. `pdftotext-` is a wrapper around pdftotext which
+# writes to stdout.
+[diff "pdf"]
+       textconv = pdftotext-
+
 [merge]
 IF(OS, darwin)
        tool = opendiff