-
Notifications
You must be signed in to change notification settings - Fork 17
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
Open default GH branch #17
Comments
Currently, the logic is:
I can add a The reason for this heuristic is to keep it fast. Sending one additional request before downloading the tarball would slow it down, and most repositories don't use the default branch feature |
Added in |
Also: added a |
git-peek seems to open the master branch, but if a repo has a non-master default branch this ends up opening the "wrong" branch, and it's not immediately obvious how to open the "correct" branch.
Take this repo as an example: https://github.com/jdiwnab/OrbitSim
git-peek https://github.com/jdiwnab/OrbitSim
results in the editor being opened to a very sparse repo, since git-peek is opening https://github.com/jdiwnab/OrbitSim/tree/master.The way to open the default branch is to run
git-peek https://github.com/jdiwnab/OrbitSim/tree/gh-pages
. But this is a url that needs to be constructed manually, as GH doesn't seem to expose it in the UI: the url for thegh-pages
branch is just https://github.com/jdiwnab/OrbitSimIt would be nice if git-peek accepted a "branch" parameter or opened the default branch of the repo.
The text was updated successfully, but these errors were encountered: