用新文件修补被子
我正在尝试创建一个新的被子补丁,仅添加一个文件。不幸的是该文件似乎被忽略了。
我做了quilt new some_patch
和quilt 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在写入之前,您必须先将文件添加到被子中。这样被子就能追踪差异。如果写完之后再添加,之后就没有变化了。
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.
将新文件移到一边,“添加”文件名称,然后将文件移回原处。
Move new files aside, "add" names of files, then move files back.
请记住,您应该在更改文件之前添加文件,否则,您将不会有差异,一旦您添加它的时间与运行差异的时间之间就不会有差异。这就是被子差异所显示的。
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.