Diff: Unterschied zwischen den Versionen

Aus SchnallIchNet
Wechseln zu: Navigation, Suche
K (hat Diff Patch nach Diff verschoben)
 
Zeile 1: Zeile 1:
 
Assume Original source code at folder Tb01, and latest source code at folder Tb02. And there have multiple sub directories at Tb01 and Tb02 too.
 
Assume Original source code at folder Tb01, and latest source code at folder Tb02. And there have multiple sub directories at Tb01 and Tb02 too.
 
  diff -crB Tb01 Tb02 > Tb02.patch
 
  diff -crB Tb01 Tb02 > Tb02.patch
-c context, -r recursive (multiple levels dir), -B is to ignore Blank Lines.
+
# -c context
 +
# -r recursive (multiple levels dir)
 +
# -B is to ignore Blank Lines.
 +
# -u schow diff more readable. (didn't use this for creating a .patch file)
 
I put -B because blank lines is really useless for patching, sometimes I need to manually read the patch file to track the changes, without -B is really headache.
 
I put -B because blank lines is really useless for patching, sometimes I need to manually read the patch file to track the changes, without -B is really headache.

Aktuelle Version vom 28. Oktober 2009, 08:12 Uhr

Assume Original source code at folder Tb01, and latest source code at folder Tb02. And there have multiple sub directories at Tb01 and Tb02 too.

diff -crB Tb01 Tb02 > Tb02.patch
  1. -c context
  2. -r recursive (multiple levels dir)
  3. -B is to ignore Blank Lines.
  4. -u schow diff more readable. (didn't use this for creating a .patch file)

I put -B because blank lines is really useless for patching, sometimes I need to manually read the patch file to track the changes, without -B is really headache.