Perforce: passing file extensions in diff command

I am trying to execute the diff command in a P4 command line tool in a subset of files.

I would like to unzip files in a specific directory that match a specific extension.

Can I specify an extension using the diff command?

From what I am collecting from the documentation, such a thing is impossible.

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

Thanks!

+4
source share
1 answer

Not sure if diff , in particular, allows multiple files, but in general P4 allows wildcards through ... , so for all txt files in a specific subdirectory you can say

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

This will filter out all .txt files on this particular path.

+2
source

All Articles