diff options
author | Michele Locati <michele@locati.it> | 2018-03-16 11:22:40 +0100 |
---|---|---|
committer | Michele Locati <michele@locati.it> | 2018-03-16 16:56:39 +0100 |
commit | 54cf93763dbfd00146f8f2352d4f70f61af01831 (patch) | |
tree | 2226b4f2f6f62ece713363f7c29d4da06bb2503a /test/bootstrap | |
parent | 15cdf13edbda73edb829102b4e20e998bce5f355 (diff) | |
download | incremental-git-filter-branch-54cf93763dbfd00146f8f2352d4f70f61af01831.tar.gz incremental-git-filter-branch-54cf93763dbfd00146f8f2352d4f70f61af01831.tar.bz2 incremental-git-filter-branch-54cf93763dbfd00146f8f2352d4f70f61af01831.zip |
Add --prune-branches and --prune-tags options
Diffstat (limited to 'test/bootstrap')
-rwxr-xr-x | test/bootstrap | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/bootstrap b/test/bootstrap index fe9c0ba..ea781c9 100755 --- a/test/bootstrap +++ b/test/bootstrap @@ -88,3 +88,8 @@ getTagList () { getTagList_multiline=$(git -C "${1}" show-ref --tags | sed -E 's:^.*?refs/tags/::' || true) printf '%s' "${getTagList_multiline}" | sort -b | tr '\n' ' ' | sed -E 's:^ | $::g' } + +getBranchList () { + getBranchList_multiline=$(git -C "${1}" show-ref --heads | sed -E 's:^.*?refs/heads/::' || true) + printf '%s' "${getBranchList_multiline}" | sort -b | tr '\n' ' ' | sed -E 's:^ | $::g' +} |