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

Re: patches in context format ?

From
Christian MICHON <christian.michon@gmail.com>
Date
Jan 12, 2009, 09:52 UTC
Message-ID
<46d6db660901120152g31d33bfevcd592ae360252804@mail.gmail.com>
In-Reply-To
<7vy6xgj2jq.fsf@gitster.siamese.dyndns.org>
On Mon, Jan 12, 2009 at 10:28 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 12 quoted lines
>> I guess the answer is no, but has anyone on the list been working on
>> this ? is there another way to translate from "context" to "unified"
>> format ?
>
> Not that I know of.
>
> If you want to add support for the copied context format patches to your
> workflow, I think the first step (and easiest one) would be to find an
> external program that lets you convert from the copied context format to
> the unified context format.  Perhaps "interdiff /dev/null copied >unified"
> would suffice (but I haven't tested this).
>

interdiff is exactly what I needed (I used -p and -q switches, plus a substitution for the path).

Thanks for this! I guess there's not really a need to add this now in git-am, since I've seldom seen such context patches.

-- 
Christian
--
http://detaolb.sourceforge.net/, a linux distribution for Qemu with Git inside !
Previous: Junio C HamanoNext: Teemu Likonen
Message 3 of 7 in “patches in context format ?”
  1. Christian MICHONJan 12, 2009
  2. Junio C HamanoJan 12, 2009
  3. Christian MICHONJan 12, 2009
  4. Teemu LikonenJan 12, 2009
  5. Christian MICHONJan 12, 2009
  6. Jeff KingJan 12, 2009
  7. Christian MICHONJan 12, 2009

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.