Recongition of new commits for CI

This commit is contained in:
2018-02-25 20:00:02 +01:00
parent 4b44a745e4
commit 8aee30f8d2
3 changed files with 89 additions and 6 deletions

View File

@@ -32,6 +32,21 @@ function detectorCheckFetchHead(){
function gitListTags(){
local dir=$1
git --no-paginate --git-dir="$dir" tag -l
git --git-dir="$dir" tag -l | cat
}
function gitListBranches(){
local dir=$1
git --git-dir="$dir" for-each-ref --format='%(refname:short)' refs/heads/
}
function gitPrefBranches(){
local dir=$1
gitListBranches $1 | grep master || true
gitListBranches $1 | grep upstream || true
gitListBranches $1 | sort | grep -vE 'master|upstream'
}