开发者

Perforce : passing file extensions in a "diff" command

I'm trying to execute a "diff" command in P4's command line tool on a subset of files.

I would like to diff files in a certain directory that correspond to a certain extension.

Is there any way t开发者_JAVA百科o specify an extension with the "diff" command ?

From what I gather from the documentation, such a thing is not possible.

How would you do "diff" only for files with a certain extension ?

Thanks !


Not sure if diff in particular allows for multiple files, but in general, P4 allows for wildcards via ..., so for all txt files in a certain subdirectory, you could say

//depot/stuff/whatever/....txt

That will filter out all .txt files in this particular path.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜