memo.xight.org

日々のメモ

diff と patch の覚書

diff

$ diff -urN test1.c test2.c > test1_to_2.patch

- patch

$ patch -p1 < test1_to_2.patch