quilt add cdc_ncm.c

2.添加patch关联的文件

  quilt add  [ -P filename.patch]  files

quilt命令具有生成和应用补丁的功能,同时也可以作为补丁管理工具。使用quilt命令之后,会在源代码目录中生成patches目录和.pc目录,patches目录用来保存patch文件,在目录中还存在一个series文件,记录了当前应用的patch文件的先后顺序。.pc目录则用来保存备份文件,不需要关注。quilt常见的命令如下:

       1.生成一个新的patch

           quilt new filename.patch

       2.添加patch关联的文件

           quilt add  [ -P filename.patch]  files

           如果没有指定patch,文件就和栈顶的patch关联起来。

      3.修改完成后生成最终patch

           quilt refresh

           在关联文件后可以直接修改文件,也可以使用quilt edit修改文件,只能对栈顶patch进行操作,不能制定patch

      4.查看应用/未应用的patch

           quilt applied /quilt unapplied

      5. 查看已修改的文件

          quilt files

          可以使用 quilt files [patch] 查看与指定patch相关联的文件

      6.从源代码找与之关联的patch

          quilt patches file.c

      7.对比修改的文件

          quilt diff

      8.查看所有的patch

          quilt series

      9.查看最上层的patch

           quilt top

      10.导入patch

           quilt import filename.patch

      11.回退到上一个patch

           quilt pop 

           quilt pop -a 回退所有应用的patch

      12.重新添加刚刚回退的patch

           quilt push

      13.删除已有的patch

           quilt filename.patch

 

https://www.zhangshilong.cn/work/396234.html

posted on   lydstory  阅读(57)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2021-12-02 两个大数计算
2021-12-02 华为机考(牛客网)字符统计
2021-12-02 auto a:ans迭代器输出
2021-12-02 c++大小写
2021-12-02 牛客网通过版while(getline(cin,str))
2021-12-02 注意字符串第一个字符do...while
2021-12-02 cin.getline

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示