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

Re: [PATCH] Do not drop data from '\0' until eol in patch output

From
Junio C Hamano <junkio@cox.net>
Date
Jul 7, 2006, 12:03 UTC
Message-ID
<7vd5chzkop.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<44AE431C.4090509@b-i-t.de>
sf <sf@b-i-t.de> writes:
> GNU patch can apply patches with binary content which are typically
> produced with GNU diff with --text option.

Hmph. Things must have improved since I looked at it the last time, perhaps 6-7 years ago. I remember that I used "diff -a -u0" as an el-cheapo way to deliber binary contents but found that patch sometimes could not grok such, and ended up writing a small customized C program.

Previous: sf
Message 4 of 4 in “Do not drop data from '\0' until eol in patch output”
  1. Do not drop data from '\0' until eol in patch outputStephan Feder, Jul 7, 2006
  2. Junio C HamanoJul 7, 2006
  3. sfJul 7, 2006
  4. Junio C HamanoJul 7, 2006

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.