Transform a combined diff into a patch

☆樱花仙子☆ 提交于 2019-12-10 11:24:15

问题


The git diff manual says...

Chunk header format is modified to prevent people from accidentally feeding it to patch -p1. Combined diff format was created for review of merge commit changes, and was not meant for apply. The change is similar to the change in the extended index header...

Sometimes it would be nice to feed it to patch though. Is there a way to convert a combined diff into a normal one which is suitable for diff/git apply?

来源:https://stackoverflow.com/questions/23923830/transform-a-combined-diff-into-a-patch

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!