用新文件修补被子

发布于 2024-10-08 18:41:24 字数 313 浏览 0 评论 0原文

我正在尝试创建一个新的被子补丁,仅添加一个文件。不幸的是该文件似乎被忽略了。

我做了quilt new some_patchquilt add some_file。然后我可以在 quilt files 中看到该文件,但是当我刷新时,我返回:

Nothing in patch some_patch

在弹出 some_patch 后,添加的文件不会被删除,并且实际上没有任何内容保存到补丁中(补丁文件不是创建)。

我在这里做错了什么?

I'm trying to create a new quilt patch with only one file added. Unfortunately the file seems to be ignored.

I did quilt new some_patch and quilt add some_file. I can see the file in quilt files then, but when I refresh, I get back:

Nothing in patch some_patch

After I pop some_patch, the added file is not removed and nothing is actually saved into the patch (patch file is not created).

What am I doing wrong here?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

一页 2024-10-15 18:41:24

在写入之前,您必须先将文件添加到被子中。这样被子就能追踪差异。如果写完之后再添加,之后就没有变化了。

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.

○愚か者の日 2024-10-15 18:41:24

将新文件移到一边,“添加”文件名称,然后将文件移回原处。

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

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
最近可好 2024-10-15 18:41:24

请记住,您应该在更改文件之前添加文件,否则,您将不会有差异,一旦您添加它的时间与运行差异的时间之间就不会有差异。这就是被子差异所显示的。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文