bgreenlee / sublime-github

Sublime Text 2/3 plugin that provides a number of useful commands for GitHub.
MIT License
455 stars 98 forks source link

Enable fetching git default branch dynamically instead of settings #128

Open keymastervn opened 8 months ago

keymastervn commented 8 months ago

Given the context that I have been working on multiple repos with different default branches, I've recently faced errors no on uncommitted branches.

Screenshot 2023-11-10 at 18 40 22

The cmd of Github: Blame (default branch) calling to main concretely instead of master or development (depending on which repo) is untrue.

By configuring "default_branch": "", this PR is now dynamically allowing us to fetch the true default branch which is defined by the active git repo. Hence we can enjoy Github: Blame (default branch) when working in pre-push style.