Documentation
¶
Index ¶
- func Checkout(r *git.Repository, branch string) error
- func CheckoutCreate(r *git.Repository, branch string) error
- func ChooseRemote(rs []*git.Remote) *git.Remote
- func Commit(r *git.Repository, name string, email string, files []string) error
- func PullMaster(w *git.Worktree, remote string, user string, token string) error
- func PullRequest(c *github.Client, owner string, repo string, branch string) (int, error)
- func Push(r *git.Repository, remote string, branch string, user string, token string) error
- func PushableRemote(repo *git.Repository) (string, string, error)
- func Recent(client *github.Client, owner, repo string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckoutCreate ¶
Create a new branch and switch to it, based off the current branch.
func ChooseRemote ¶
func ChooseRemote(rs []*git.Remote) *git.Remote
Pick a suitable "remote" to push to later, defaulting to one that was created previously by this tool.
func PullMaster ¶ added in v1.0.1
Pull the `master` branch.
func PullRequest ¶
Open a pull request, and return its number.
func PushableRemote ¶
Fetch or create an HTTP-based remote that we can used to push via the given Github API token. Yields the name of the remote, as well as the owner of the repo.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.