$diff -c sigrot.1 sigrot.2 > sigrot.patch
或者使用
$diff -u sigrot.1 sigrot.2 > sigrot.patch
如果源代碼樹內包含子目錄,則在使用diff時指定-r(recursive)選項以告訴diff在創建補丁文件時遍歷所有子目錄.
或者使用
$diff -u sigrot.1 sigrot.2 > sigrot.patch
如果源代碼樹內包含子目錄,則在使用diff時指定-r(recursive)選項以告訴diff在創建補丁文件時遍歷所有子目錄.