【发布时间】:2011-09-07 03:08:42
【问题描述】:
$ vim patch
Index: toPatch
===================================================================
--- toPatch
+++ toPatch
@@ -2,4 +2,4 @@
*/
-final public class XMLWriter {
+public class XMLWriter {
$ vim toPatch
*/
final public class XMLWriter {
public static float CURRENT_VERSION=2.2f;
$ patch -p0 -ui patch
patching file toPatch
Hunk #1 succeeded at 1 with fuzz 2 (offset -1 lines).
为什么会有绒毛和线偏移?这是一个尝试了解差异和补丁的演示案例,因为工具有时/经常似乎无法按预期工作。
【问题讨论】: