Making binary diffs

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Making binary diffs

From: Geoff Russell <hidden>
Date: 2016-06-15 22:43:19

Hi,

"git format-patch" generates binary diffs for binary files (e.g pdfs)
in its patches,
but "git diff -p" just tells me that a binary file is different and doesn't
generate the actual diff.

Is there some switch I'm missing to tell "git diff" to generate a
binary diff on binary files?

Cheers,
Geoff Russell

Re: Making binary diffs

From: Shawn O. Pearce <hidden>
Date: 2016-06-15 22:43:19

Geoff Russell [off-list ref] wrote:
"git format-patch" generates binary diffs for binary files (e.g pdfs)
in its patches,
but "git diff -p" just tells me that a binary file is different and doesn't
generate the actual diff.
--binary::
    In addition to --full-index, output "binary diff" that
    can be applied with "git apply".

Should work with all of the "diff things" like `git diff`,
`git log`, etc.  See the diff-options.txt in Documentation.

-- 
Shawn.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help