Commit e4230a3a by Han Su Kim

Adding logic to list by tag as well as branch

parent 8379045a
......@@ -65,6 +65,9 @@ if [[ -z $noop ]]; then
for branch in $(git branch -a | sort -r | tr -d ' ' | grep -E "$filter" ); do
echo "origin/${branch}"
done
else
echo "Would have checked for branches using filter $filter"
for tag in $(git tag -l | sort -r | tr -d ' ' | grep -E "$filter"); do
echo "$tag"
done
else
echo "Would have checked for branches or tags using filter $filter"
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment