Difference between patch and diff files

前端 未结 3 1514
暗喜
暗喜 2021-02-05 02:15

Could somebody explain me the difference between a .diff file and .patch file.

3条回答
  •  北恋
    北恋 (楼主)
    2021-02-05 02:55

    patch is a unified diff (-u), if you you do a: diff -u oldfile newfile, with patch command line, you can apply the differences to oldfile to become newfile somewhere else.

提交回复
热议问题