Commit e4230a3a by Han Su Kim

Adding logic to list by tag as well as branch

parent 8379045a
...@@ -63,8 +63,11 @@ fi ...@@ -63,8 +63,11 @@ fi
$noop cd "/var/tmp/$repo_basename" $noop cd "/var/tmp/$repo_basename"
if [[ -z $noop ]]; then if [[ -z $noop ]]; then
for branch in $(git branch -a | sort -r | tr -d ' ' | grep -E "$filter" ); do for branch in $(git branch -a | sort -r | tr -d ' ' | grep -E "$filter" ); do
echo "origin/${branch}" echo "origin/${branch}"
done done
else for tag in $(git tag -l | sort -r | tr -d ' ' | grep -E "$filter"); do
echo "Would have checked for branches using filter $filter" echo "$tag"
done
else
echo "Would have checked for branches or tags using filter $filter"
fi 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