Skip to content

Instantly share code, notes, and snippets.

@kkarad
Last active September 4, 2015 17:54
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 kkarad/361325 to your computer and use it in GitHub Desktop.
Save kkarad/361325 to your computer and use it in GitHub Desktop.
set branch=main
set workspace=C:\workspace\
set depot=//depot/my-project/
p4 diff -se | p4 -x - edit
p4 diff -sd | p4 -x - delete
dir C:\workspace /b /s /a-d | p4 -x - add
dir %workspace%%branch%\project-x /b /a-d | p4 -x - add
dir %workspace%%branch%\project-x\src /b /s /a-d | p4 -x - add
dir %workspace%%branch%\project-x\lib /b /s /a-d | p4 -x - add
dir %workspace%%branch%\project-x\x-core /b /a-d | p4 -x - add
dir %workspace%%branch%\project-x\x-core\src /b /s /a-d | p4 -x - add
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment