ewanmellor / git-diff-image

An extension to 'git diff' that provides support for diffing images.
254 stars 30 forks source link

Trying to create a binary patch file #2

Closed sm11963 closed 7 years ago

sm11963 commented 7 years ago

When trying to create a path file like git diff master myfeature --binary > mypatch.patch having diff.image.command set to git-diff-image makes the patch fail since it still uses the text description provided by git_diff_image.

Is there a way to handle the --binary flag and disable the custom image diff? Or maybe an simple way (behind and alias) to enable/disable the custom image diff.

ewanmellor commented 7 years ago

You want:

git diff master myfeature --binary --no-ext-diff > mypatch.patch

That looks like it's working. Feel free to reopen if not!

sm11963 commented 7 years ago

Awesome thanks for such a quick reply!