Skip to content

Instantly share code, notes, and snippets.

@gorlak
Created July 19, 2019 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gorlak/8e4d9a76fda7e0e90e38acf7aadfa118 to your computer and use it in GitHub Desktop.
Save gorlak/8e4d9a76fda7e0e90e38acf7aadfa118 to your computer and use it in GitHub Desktop.
p4.exe ninjitsu

To switch streams:

  1. p4 client
  2. Edit Stream field, skip updating any Views, they will be regenerated
  3. p4 sync > nul to update to #head in the new stream and skip printing gratuitous tty

To prop up a new stream workspace quickly:

  1. Copy your P4CONFIG file from an existing workspace to a new workspace root
  2. Edit it and change the name of the P4CLIENT to be the new workspace name
  3. p4 client
  4. Delete Views section completely and create Stream property with the name of the stream you want
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment