Patch with new file

I am trying to create a new curl patch by adding only one file. Unfortunately, the file seems to be ignored.

I did quilt new some_patch and quilt add some_file . Then I can see the file in quilt files , but when I update, I return:

 Nothing in patch some_patch 

After I pop some_patch, the added file will not be deleted and nothing will be saved in the patch (patch file not created).

What am I doing wrong here?

+7
source share
3 answers

Before writing, you must first add the file to the quilt. So the blanket can track the difference. If you add it after recording it, there will be no changes after that.

+12
source

Remember that you must add the file before replacing it, otherwise you will not have a difference if there is no difference between the time you added and the diff start time. This is what diff quilt shows.

+1
source

Set the new files aside, β€œadd” the file names, and then move the 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 
+1
source

All Articles