Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to ignore the currently checked out branch #195

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

phwt
Copy link

@phwt phwt commented Aug 12, 2022

  • 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.

@xuoutput
Copy link

bump

@jbsmith7741
Copy link

This is exactly what I was looking for as well.

@paulirish Is this okay to be merged?

@paulirish
Copy link
Owner

paulirish commented Dec 21, 2023

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.

@jbsmith7741
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants