{"thread":{"id":"8791","subject":"Making binary diffs","startedAt":"2007-07-01T06:14:24Z","lastAt":"2007-07-01T06:17:10Z","messageCount":2,"participants":["Geoff Russell","Shawn O. Pearce"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"46150","messageId":"93c3eada0706302314m20616a17s762704606c881278@mail.gmail.com","threadId":"8791","inReplyTo":null,"subject":"Making binary diffs","fromName":"Geoff Russell","fromEmail":"geoffrey.russell@gmail.com","sentAt":"2007-07-01T06:14:24Z","receivedAt":"2007-07-01T06:14:24Z","isPatch":false,"sender":{"key":"geoffrey.russell@gmail.com","avatar":"https://gravatar.com/avatar/c30f497ccfa6bf06d86f30bd2ba092a2dd124c61c6bc902f7cb5c3f6486947de?d=mp&s=160"},"body":"Hi,\n\n\"git format-patch\" generates binary diffs for binary files (e.g pdfs)\nin its patches,\nbut \"git diff -p\" just tells me that a binary file is different and doesn't\ngenerate the actual diff.\n\nIs there some switch I'm missing to tell \"git diff\" to generate a\nbinary diff on binary files?\n\nCheers,\nGeoff Russell\n"},{"id":"46151","messageId":"20070701061710.GR32223@spearce.org","threadId":"8791","inReplyTo":"93c3eada0706302314m20616a17s762704606c881278@mail.gmail.com","subject":"Re: Making binary diffs","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2007-07-01T06:17:10Z","receivedAt":"2007-07-01T06:17:10Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Geoff Russell <geoffrey.russell@gmail.com> wrote:\n> \"git format-patch\" generates binary diffs for binary files (e.g pdfs)\n> in its patches,\n> but \"git diff -p\" just tells me that a binary file is different and doesn't\n> generate the actual diff.\n\n--binary::\n    In addition to --full-index, output \"binary diff\" that\n    can be applied with \"git apply\".\n\nShould work with all of the \"diff things\" like `git diff`,\n`git log`, etc.  See the diff-options.txt in Documentation.\n\n-- \nShawn.\n"}]}