summaryrefslogtreecommitdiffstats
path: root/distrib/add-indexed-branch.cmd
blob: a7c4451a3527ed05f0b1b3446431a605a91b71ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
@REM --------------------------------------------------------------------------
@REM This is for Lucene search integration.
@REM
@REM Allows you to add an indexed branch specification to the repository config
@REM for all matching repositories in the specified folder.
@REM
@REM All repositories are included unless excluded using a --skip parameter.
@REM --skip supports simple wildcard fuzzy matching however only 1 asterisk is
@REM allowed per parameter.
@REM
@REM Always use forward-slashes for the path separator in your parameters!!
@REM
@REM Set FOLDER to the server's git.repositoriesFolder
@REM Set BRANCH ("default" or fully qualified ref - i.e. refs/heads/master)
@REM Set EXCLUSIONS for any repositories that you do not want to change
@REM --------------------------------------------------------------------------
@SET FOLDER=c:/gitblit/git
@SET EXCLUSIONS=--skip test.git --skip group/test*
@SET BRANCH=default
@java -cp gitblit.jar;"%CD%\ext\*" com.gitblit.AddIndexedBranch --repositoriesFolder %FOLDER% --branch %BRANCH% %EXCLUSIONS% %*