updated to ignore star for current branch unless at front