How to find untracked files in a Perforce tree? (analogue of svn status)

前端 未结 16 2106
独厮守ぢ
独厮守ぢ 2020-12-02 06:44

Anybody have a script or alias to find untracked (really: unadded) files in a Perforce tree?

EDIT: I updated the accepted answer on this one since it looks like P4V

16条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-02 07:49

    On linux, or if you have gnu-tools installed on windows:

    find . -type f -print0 | xargs -0 p4 fstat >/dev/null
    

    This will show an error message for every unaccounted file. If you want to capture that output:

    find . -type f -print0 | xargs -0 p4 fstat >/dev/null 2>mylogfile
    

提交回复
热议问题