p4 diff 不显示新添加的文件
我需要一些帮助。 如何使用 p4 diff 获取 diff 以便我的补丁包含 还有有关新添加文件的信息吗?
p4 add foo.cc
p4 diff > my.patch
my.patch 应包含 foo.cc
I need some help.
How do I get diff using p4 diff so that my patch contains
information about newly added files too ?
p4 add foo.cc
p4 diff > my.patch
my.patch should contain foo.cc
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
p4 diff 将客户端上的文件与服务器上的库中的文件进行比较。如果您尚未提交包含要添加的新文件的更改列表,则该文件不在服务器上,因此无需进行比较。
要使用 p4 diff...
如果您自步骤 3 以来尚未编辑该文件,则它不应显示任何差异。如果您在签出文件后对其进行编辑(并在本地保存更改),步骤 4 将显示差异。
p4 diff compares files on your client with what's in the depot on the server. If you haven't submitted your changelist containing the new file to add, then the file isn't on the server, so there's nothing to compare.
To use p4 diff...
If you haven't edited the file since step 3, it shouldn't show any differences. If you edit the file after checking it out (and save your changes locally), step 4 will show diffs.