git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Making binary diffs

From
Shawn O. Pearce <spearce@spearce.org>
Date
Jul 1, 2007, 06:17 UTC
Message-ID
<20070701061710.GR32223@spearce.org>
In-Reply-To
<93c3eada0706302314m20616a17s762704606c881278@mail.gmail.com>
Geoff Russell <geoffrey.russell@gmail.com> 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.
Previous: Geoff Russell
Message 2 of 2 in “Making binary diffs”
  1. Geoff RussellJul 1, 2007
  2. Shawn O. PearceJul 1, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.