Refactor: remove dup code
Set @options in assing_ref_vars

@options enable to keep params when switching ref.
Enable to filter graph by ref
Add "Show only selected branch" checkbox
Add test for "Show only selected tag"
Merge pull request #3591 from hiroponz/show-only-selected-branch

Show only selected branch