diff¶
Creando un parche¶
Dos archivos simples
$ diff -cB original modificado > modificaciones.patch
Ejemplo:
$ diff -cB test_autopush.rb test_autopush_patched.rb *** test_autopush.rb 2011-12-31 10:36:29.158319369 -0430 --- test_autopush_patched.rb 2011-12-31 10:40:44.357761878 -0430 *************** *** 1,6 **** require 'tempfile' require 'test/unit' ! RUBY_PLATFORM =~ /linux/ and require 'strace' $-w = true require 'kgio' --- 1,6 ---- require 'tempfile' require 'test/unit' ! #RUBY_PLATFORM =~ /linux/ and require 'strace' $-w = true require 'kgio' $ diff -cB test_autopush.rb test_autopush_patched.rb > p0_test_autopush.patch