branchesapp
branchesapp copied to clipboard
Wish g2h.rb would not fetch from network when local clone exists.
This helps me find forks that has the changes I want (usually because the original repository went dormant or something)
This is very good and what I was looking for.
forks of the project will be fetched (and cached locally in a .json file).
(1) In many case, the user will actually have a local clone. There is no need to refetch a complete git clone of the forks from a github URL. Some repositories are quite big, so the cost of fetching all might be high and should be avoided.
(2) Also, the local clone has a number of remotes already known (git remote -v show
). Perhaps only one "origin" to their github fork, possible a selection of other github forks. The user may just want a view restricted to the forks listed by git remote -v show
, not all the remotes known to github.
Technically, this would mean:
- (1) using the local directory as cache (instead of
public/username/reponame
) - (2) an option to do
git remote -v show
and use only remote with URLs that look like github there, instead of fetching all remote names from github API.
There were several ideas here, I hope these writings are clear enough.
Sounds like a good idea to leverage off local cache to narrow down the forks. Though I don’t remember the details of how this repo does its work and if it trips up anything.
Feel free to explore the possibilities 🙇