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.
精彩评论