Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion gitflow-common
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,14 @@ escape() {
# set logic
has() {
local item=$1; shift
echo " $@ " | grep -q " $(escape $item) "
for s in $@; do
if [ "$item" = "$s" ]; then
return 0
fi
done
return 1
# the following code has issues with + in the branch names
# echo " $@ " | grep -q " $(escape $item) "
}

# basic math
Expand Down