-
Notifications
You must be signed in to change notification settings - Fork 85
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
Listing forks #176
Comments
Hi! Sorry for the delay to respond. Well, it looks like there's an API for that:
I'd say we could design a subcommand forks that would go like:
then you could fetch one fork using:
(or specify the remote name as last argument:
and for your own pleasure, we could add:
About listing, we could use the same algorithm as for
The code should be pretty close to the existing Sadly, I'm quite snowed currently so I have no idea when will be the next time I'll have time to sit and give time to this project to implement new features. But I'll be happy to help anybody ready to write the feature! |
That would be perfect. I don't have much time myself right now, but if you can point me at where to look to get started, I'd be happy to give it a shot. |
to add the new feature in git-repo, here's the gist: Add the CLI optionfirst you add in the docstring for docopt the commands you want to create, something like:
you might want to document it a bit more at the end of the docstring to give some context to the parameters. A bit like that, and just below it. Implement the actions handlerAt the end of the part where you register actions, you create a function pretty much like the
Add a placeholder in the
|
It would be very nice if we could:
One challenge I would see is to figure out which repository is the blessed one in the case one works with a fork of their own. But I personally love doing
git fetch --all
to pull the code of everyone I work with, and I would love it if there was a way for me to figure out which forks to add from the command line.The text was updated successfully, but these errors were encountered: