是否有一个 Perforce 命令可以显示文件/目录的所有签入列表以及已更改的文件列表和描述?
p4 Changes -l ...
显示签入列表和描述,但不显示签入中修改的文件列表。有没有办法在一个命令中做到这一点,而不需要创建一个包装器脚本来组合另一个命令的输出,例如p4描述
或p4文件< /代码>?
在 Subversion 中,我可以通过运行 svn log -v 来完成此操作。
p4 changes -l ...
shows us the list of check-ins and the description, but it doesn't show the list of files that were modified in the check-in. Is there a way to do that in one command, without the need to create a wrapper script that combines the output of another command like p4 describe
or p4 file
?
In Subversion, I can do this by running svn log -v
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
“文件”命令可以满足您的要求。一个简单的方法是:
该示例将在指定的视图下列出该更改列表修改的文件。
The 'files' command can do what you're looking for. An easy way is:
That example will list the files modified by that changelist, under the view specified.
您可以使用“describe”命令获取更改列表的描述以及受影响的文件。
例如,
p4describe -s
将描述更改列表,“-s”将阻止它显示文件差异。You can use the "describe" command to get the description of a changelist, along with the files affected.
For example,
p4 describe -s <changelist>
will describe the changelist, and the "-s" will prevent it from displaying file diffs.一行列出了对分支所做的所有更改,以及受影响文件的描述和列表,但不显示差异。感谢答案的组合。适用于带有 Unix utils 的 Windows
输出:
One liner, list all changes made to a branch, with description and list of affected files, without showing the diff. Thanks to a combination of answers. Works on windows with Unix utils
Output: