Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save khanfarhan10/995e251d3e025dc1c6039d890c3689b5 to your computer and use it in GitHub Desktop.

Select an option

Save khanfarhan10/995e251d3e025dc1c6039d890c3689b5 to your computer and use it in GitHub Desktop.

Revisions

  1. @thbar thbar revised this gist Nov 26, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion how-to-diff-pdf-files-with-git-and-diffpdf.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    One can use MD5 or plain text diff to see differences in PDF files. If that's not enough, here's how to use [diffpdf](http://www.qtrac.eu/diffpdf.html) which knows how to diff based on appearance or words:
    One can use MD5 or plain text diff to see differences in PDF files. If that's not enough, here's how to use [diff-pdf](https://vslavik.github.io/diff-pdf/) which knows how to diff based on appearance or words:

    * ```brew install diff-pdf```
    * edit your `~/.gitconfig` to add this:
  2. @thbar thbar revised this gist Dec 11, 2018. No changes.
  3. @thbar thbar revised this gist Dec 11, 2018. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions how-to-diff-pdf-files-with-git-and-diffpdf.md
    Original file line number Diff line number Diff line change
    @@ -9,6 +9,7 @@ One can use MD5 or plain text diff to see differences in PDF files. If that's no
    ```

    * then use with:

    ```
    git difftool --tool=diffpdf your_pdf_file.pdf
    ```
    @@ -21,4 +22,10 @@ Also useful in `.bash_profile`:
    function git_diff_pdf {
    yes | git difftool --tool=diffpdf $1
    }
    ```

    then you can use it like:

    ```
    git_diff_pdf your_pdf_file.pdf
    ```
  4. @thbar thbar revised this gist Dec 11, 2018. 1 changed file with 9 additions and 1 deletion.
    10 changes: 9 additions & 1 deletion how-to-diff-pdf-files-with-git-and-diffpdf.md
    Original file line number Diff line number Diff line change
    @@ -13,4 +13,12 @@ One can use MD5 or plain text diff to see differences in PDF files. If that's no
    git difftool --tool=diffpdf your_pdf_file.pdf
    ```

    I suspect there's maybe some way to force always using a specific difftool for files with a specific extension; in the mean time I'm just using a bash function for this.
    I suspect there's maybe some way to force always using a specific difftool for files with a specific extension; in the mean time I'm just using a bash function for this.

    Also useful in `.bash_profile`:

    ```
    function git_diff_pdf {
    yes | git difftool --tool=diffpdf $1
    }
    ```
  5. @thbar thbar revised this gist Dec 11, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion how-to-diff-pdf-files-with-git-and-diffpdf.md
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ One can use MD5 or plain text diff to see differences in PDF files. If that's no

    ```
    [difftool "diffpdf"]
    cmd = diff-pdf \"$LOCAL\" \"$REMOTE\"
    cmd = diff-pdf --view \"$LOCAL\" \"$REMOTE\"
    ```

    * then use with:
  6. @thbar thbar revised this gist May 7, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions how-to-diff-pdf-files-with-git-and-diffpdf.md
    Original file line number Diff line number Diff line change
    @@ -4,13 +4,13 @@ One can use MD5 or plain text diff to see differences in PDF files. If that's no
    * edit your `~/.gitconfig` to add this:

    ```
    [difftool "diff-pdf"]
    [difftool "diffpdf"]
    cmd = diff-pdf \"$LOCAL\" \"$REMOTE\"
    ```

    * then use with:
    ```
    git difftool --tool=diff-pdf your_pdf_file.pdf
    git difftool --tool=diffpdf your_pdf_file.pdf
    ```

    I suspect there's maybe some way to force always using a specific difftool for files with a specific extension; in the mean time I'm just using a bash function for this.
  7. @thbar thbar revised this gist May 7, 2016. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions how-to-diff-pdf-files-with-git-and-diffpdf.md
    Original file line number Diff line number Diff line change
    @@ -4,13 +4,13 @@ One can use MD5 or plain text diff to see differences in PDF files. If that's no
    * edit your `~/.gitconfig` to add this:

    ```
    [difftool "diffpdf"]
    cmd = diffpdf \"$LOCAL\" \"$REMOTE\"
    [difftool "diff-pdf"]
    cmd = diff-pdf \"$LOCAL\" \"$REMOTE\"
    ```

    * then use with:
    ```
    git difftool --tool=diffpdf your_pdf_file.pdf
    git difftool --tool=diff-pdf your_pdf_file.pdf
    ```

    I suspect there's maybe some way to force always using a specific difftool for files with a specific extension; in the mean time I'm just using a bash function for this.
  8. @thbar thbar revised this gist May 7, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion how-to-diff-pdf-files-with-git-and-diffpdf.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    One can use MD5 or plain text diff to see differences in PDF files. If that's not enough, here's how to use [diffpdf](http://www.qtrac.eu/diffpdf.html) which knows how to diff based on appearance or words:

    * ```brew install diffpdf```
    * ```brew install diff-pdf```
    * edit your `~/.gitconfig` to add this:

    ```
  9. @thbar thbar revised this gist Feb 13, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion how-to-diff-pdf-files-with-git-and-diffpdf.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    One can use MD5 or plain text diff to see differences in PDF files. If that's not enough, here's how to use [diffpdf](www.qtrac.eu/diffpdf.html) which knows how to diff based on appearance or words:
    One can use MD5 or plain text diff to see differences in PDF files. If that's not enough, here's how to use [diffpdf](http://www.qtrac.eu/diffpdf.html) which knows how to diff based on appearance or words:

    * ```brew install diffpdf```
    * edit your `~/.gitconfig` to add this:
  10. @thbar thbar revised this gist Feb 13, 2013. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions how-to-diff-pdf-files-with-git-and-diffpdf.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,4 @@
    One can use MD5 or plain text diff to see differences in PDF files.

    If that's not enough, you can also use [diffpdf]
    One can use MD5 or plain text diff to see differences in PDF files. If that's not enough, here's how to use [diffpdf](www.qtrac.eu/diffpdf.html) which knows how to diff based on appearance or words:

    * ```brew install diffpdf```
    * edit your `~/.gitconfig` to add this:
    @@ -13,4 +11,6 @@ If that's not enough, you can also use [diffpdf]
    * then use with:
    ```
    git difftool --tool=diffpdf your_pdf_file.pdf
    ```
    ```

    I suspect there's maybe some way to force always using a specific difftool for files with a specific extension; in the mean time I'm just using a bash function for this.
  11. @thbar thbar renamed this gist Feb 13, 2013. 1 changed file with 0 additions and 0 deletions.
  12. @thbar thbar renamed this gist Feb 13, 2013. 1 changed file with 0 additions and 0 deletions.
  13. @thbar thbar renamed this gist Feb 13, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  14. @thbar thbar created this gist Feb 13, 2013.
    16 changes: 16 additions & 0 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    One can use MD5 or plain text diff to see differences in PDF files.

    If that's not enough, you can also use [diffpdf]

    * ```brew install diffpdf```
    * edit your `~/.gitconfig` to add this:

    ```
    [difftool "diffpdf"]
    cmd = diffpdf \"$LOCAL\" \"$REMOTE\"
    ```

    * then use with:
    ```
    git difftool --tool=diffpdf your_pdf_file.pdf
    ```