提交 329d4fa3 编写于 作者: J Jingwen Owen Ou

Add fetch stub

上级 3b53e518
......@@ -55,7 +55,7 @@ func (c *Command) List() bool {
}
var Basic = []*Command{
cmdInit,
cmdInit,
}
var Branching = []*Command{
......@@ -65,13 +65,14 @@ var Branching = []*Command{
var Remote = []*Command{
cmdClone,
cmdFetch,
cmdRemote,
}
var GitHub = []*Command{
cmdPullRequest,
cmdFork,
cmdCreate,
cmdCreate,
cmdCiStatus,
cmdBrowse,
cmdCompare,
......
package commands
import (
//"github.com/jingweno/gh/github"
//"github.com/jingweno/gh/utils"
)
var cmdFetch = &Command{
Run: fetch,
GitExtension: true,
Usage: "fetch [USER...]",
Short: "Download data, tags and branches from a remote repository",
Long: `Adds missing remote(s) with git remote add prior to fetching. New
remotes are only added if they correspond to valid forks on GitHub.
`,
}
/*
$ gh fetch jingweno
> git remote add jingweno git://github.com/jingweno/REPO.git
> git fetch jingweno
$ git fetch jingweno,foo
> git remote add jingweno ...
> git remote add foo ...
> git fetch --multiple jingweno foo
*/
func fetch(command *Command, args *Args) {
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册