forked from blackberry/VSPlugin
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathprune.bat
More file actions
35 lines (26 loc) · 712 Bytes
/
Copy pathprune.bat
File metadata and controls
35 lines (26 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@echo off
SETLOCAL
REM ######################################
REM # Make sure git tools are accessible
REM # (assume default installation dir)
REM #
set ProgFilesRoot=%ProgramFiles(x86)%
if "%ProgFilesRoot%" == "" set ProgFilesRoot=%ProgramFiles%
set PATH=%PATH%;%ProgFilesRoot%\Git\bin;
echo Repository cleanup script
echo.
REM ######################################
REM # Reading names from:
REM # - 'prune.tags.txt'
REM # and
REM # removing all unnecessary tags
REM #
echo Removing tags...
FOR /F "eol=; delims==" %%i in (prune.tags.txt) do (
echo Removing tag '%%i'...
git tag -d "%%i"
)
echo [DONE]
REM #
REM ######################################
ENDLOCAL