开发者

Perforce : passing file extensions in a "diff" command

开发者 https://www.devze.com 2023-01-28 10:17 出处:网络
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.

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

精彩评论

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