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

Feature Request: Auto detect default branch #24

Open
koliyo opened this issue Sep 20, 2024 · 2 comments
Open

Feature Request: Auto detect default branch #24

koliyo opened this issue Sep 20, 2024 · 2 comments

Comments

@koliyo
Copy link

koliyo commented Sep 20, 2024

The default branch is currently assumed to be main. I am aware of the flags to override the branches, but it would also be helpful if the tool automatically could detect the default branch.

See eg https://stackoverflow.com/questions/28666357/how-to-get-default-git-branch

I.e. using the result from git symbolic-ref --short refs/remotes/origin/HEAD

@ZolotukhinM
Copy link
Collaborator

Oh, that's neat, thanks!

@ZolotukhinM
Copy link
Collaborator

Pls feel free to submit a PR if you're up to it (but it's ok if not, I eventually can get to that too :) )

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

No branches or pull requests

2 participants