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

Re: Should cg-mkpatch output be usable with cg-patch?

From
Junio C Hamano <junkio@cox.net>
Date
Jul 21, 2005, 03:57 UTC
Message-ID
<7vackgerpe.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20050720234904.B3ED735267C@atlas.denx.de>
Wolfgang Denk <wd@denx.de> writes:
> I wander what I should do with "cg-mkpatch" generated output;  I  had
> the  impression that this should be usable with "cg-patch", but these
> are incompatible with each other. Forexample. if  a  commit  contains
> permission changes, my generated patch may look like this:

Yes, cg-patch does grok git extended diff headers, but does it by hand and missing corner cases like this is understandable.

I only briefly looked at cg-patch, but I suspect that it can lose 90% lines of its code by just using "git-apply --index".

I see cg-patch wants to be able to do reverse patch, which is not supported by git-apply currently.

Do people find "cg-patch -R" useful?
Previous: Wolfgang DenkNext: Petr Baudis
Message 2 of 6 in “Should cg-mkpatch output be usable with cg-patch?”
  1. Wolfgang DenkJul 20, 2005
  2. Junio C HamanoJul 21, 2005
  3. Petr BaudisJul 22, 2005
  4. Petr BaudisJul 22, 2005
  5. Wolfgang DenkJul 24, 2005
  6. Petr BaudisJul 24, 2005

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.