How to search for a row in history in perforce

Problem: I was told that before there was code containing the string "SOMESTRING", and I want to get this snippet. Now I can think about opening P4WEB and opening the change log one by one and pressing Ctrl-F so that the browser can search for me. But there are hundreds of changes in history, I do not want to do this hundreds of times to look for one line. Is there a way to do this faster than searching the entire history of codes, does any change contain this line?

+4
source share
1 answer

Use p4 grep, which can do searches throughout history.

+6
source

Source: https://habr.com/ru/post/1432363/


All Articles