What are the PlasticSCM equivalents to:
git clean -dxf
git clean -dx
I would like to remove every untracked file from my project tree, or every untracked, but not ignored, cloaked, or private, file from my project tree.
What are the PlasticSCM equivalents to:
git clean -dxf
git clean -dx
I would like to remove every untracked file from my project tree, or every untracked, but not ignored, cloaked, or private, file from my project tree.
There is no equivalent. PlasticSCM has declined to implement this feature
You can find the thought process of how to solve this problem here
I implemented this for windows batch like this:
REM - Delete private files
for /f %%a in ('cm status --private --compact --short %~1') do (
REM - IF IS DIRECTORY
IF EXIST %%~sa\NUL ( rmdir /s /q "%%a" ) ^
else ( del /s /q "%%a" )
)
REM - Delete ignored files
for /f %%a in ('cm status --ignored --cutignored --compact --short %~1') do (
REM - IF IS DIRECTORY
IF EXIST %%~sa\NUL ( rmdir /s /q "%%a" ) ^
else ( del /s /q "%%a" )
)