git-open icon indicating copy to clipboard operation
git-open copied to clipboard

Add option to ignore the currently checked out branch

Open phwt opened this issue 2 years ago • 4 comments

  • The --ignore-branch flag will forced the URL to be /TRACKED_REMOTE_USER/CURRENT_REPO/ without the /tree/CURRENT_BRANCH suffix that appears when default branch is not checked out.
  • Add main as an alternative default branch name in-addition of master.
  • Update bats to the forked bats-core as the original repository is no longer maintained.

phwt avatar Aug 12 '22 10:08 phwt

bump

xuoutput avatar Nov 24 '23 02:11 xuoutput

This is exactly what I was looking for as well.

@paulirish Is this okay to be merged?

jbsmith7741 avatar Dec 21 '23 22:12 jbsmith7741

God damn this is a beautiful PR. @phwt thank you.

@jbsmith7741 you have any feelings about using -b as the short flag here? feels weird to me, but -i is already taken.

maybe -r and --root instead? I don't care that much either way.

paulirish avatar Dec 21 '23 22:12 paulirish

I don't have a strong preference, maybe -m for main/master or -d for default branch.

jbsmith7741 avatar May 15 '24 19:05 jbsmith7741