Thursday, March 19, 2009

Recursive p4 add


I never remember how to recursively add files to perforceThis page describes a command to do it.



On the Linux/Mac OS X p4 command line tool this is the command:


find . -type f -print | p4 -x - add

2 comments:

  1. Cool, I didn't know about the -x. I find myself doing this often at work:
    find . -type f | xargs p4 add

    ReplyDelete
  2. on windows
    dir /s/b *.* | p4 -x - add

    ReplyDelete