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

patches in context format ?

From
Christian MICHON <christian.michon@gmail.com>
Date
Jan 12, 2009, 09:00 UTC
Message-ID
<46d6db660901120100g7f62a0c2k68c96cbfc23dab5@mail.gmail.com>

I'm maintaining a git tree of the vim project: this work can be seen at http://github.com/cmichon/vim

vim patches do not come as unified format, but only as context format instead (from a "diff -c").

The current solution I have is to use the original patch command, stage modifications and add new files. I do not like this solution, because I have to work out the commit messages out of the mbox and I lose reproducibility. I'm basically maintaining a subset of shell scripts, the original patches and an artificial way (ugly) to get timestamps of modifications (for the commit dates).

Instead of this complicated procedure, I'd like to use "git apply" or "git am", provided I can get git to support "context output format" as input for patches ?

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 ?

TIA
-- 
Christian
--
http://detaolb.sourceforge.net/, a linux distribution for Qemu with Git inside !
Next: Junio C Hamano
Message 1 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.