quilt patch with a new file

半世苍凉 提交于 2019-12-05 01:59:52

You have to add the file to quilt first, before writing it. So that quilt can track the difference. If you add it after writing it, there is no change after that.

Chad Miller

Move new files aside, "add" names of files, then move files back.

$ quilt files |while read filename; do quilt remove "$filename"; mv "$filename" t; quilt add "$filename"; mv t "$filename"; done    
$ quilt refresh   
$ quilt diff

Remember that you should add the file before changing it, otherwise, you will not the difference, once there will be no difference between the time you added it and the time you run the diff. That is what the quilt diff shows.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!