Software for Liquid Argon time projection chambers
Once feature branches are published, they are seldom removed, even after the branch has been merged with develop or some patch branch.
The plan was implemented on Sept. 17, 2019.
This script was used to identify branches that have been merged: #!/bin/bash source /cvmfs/larsoft.opensciencegrid.org/products/setup setup git
dirs="larana larcore larcorealg larcoreobj lardata lardataalg lardataobj larevt lareventdisplay larexamples larg4 larpandora larreco larsim larsoft larsoftobj larwirecell"
for dir in $dirs;do
if [ ! -d ${dir}.git ];then
git clone --mirror ssh://p-${dir}@cdcvs.fnal.gov/cvs/projects/${dir}
fi
pushd ${dir}.git >/dev/null 2>&1;
git remote update --prune >/dev/null 2>&1;
merged=""
echo "Branches that have been merged in repo ${dir}" >../${dir}.txt
echo "Branches that have been merged in repo ${dir}"
echo "branches merged into branch master/develop" >>../${dir}.txt
echo "branches merged into branch master/develop"
merged=$(git branch --merged | grep -v 'master' | grep -v 'develop' | grep -v -e '^v')
echo $merged | tr ' ' '\n' >>../${dir}.txt
git branch -D $merged >/dev/null 2>&1
for vbr in $(git branch -a | grep -e '^ v'); do
vmerged=""
echo "branches merged into branch $vbr" >>../${dir}.txt
echo "branches merged into branch $vbr"
vmerged=$(git branch --merged $vbr| grep -v $vbr)
echo $vmerged | tr ' ' '\n' >>../${dir}.txt
echo $vmerged | tr ' ' '\n'
git branch -D $vmerged >/dev/null 2>&1
done
popd >/dev/null 2>&1;
done