Debian Codegraph @

examples/fake-git/branch/git_branch.go

raw symbols SCIP
1 package main
2
3 import (
4 "fmt"
5 "github.com/docopt/docopt-go"
6 )
7
8 func main() {
9 usage := `usage: git branch [options] [-r | -a] [--merged=<commit> | --no-merged=<commit>]
10 git branch [options] [-l] [-f] <branchname> [<start-point>]
11 git branch [options] [-r] (-d | -D) <branchname>
12 git branch [options] (-m | -M) [<oldbranch>] <newbranch>
13
14 Generic options:
15 -h, --help
16 -v, --verbose show hash and subject, give twice for upstream branch
17 -t, --track set up tracking mode (see git-pull(1))
18 --set-upstream change upstream info
19 --color=<when> use colored output
20 -r act on remote-tracking branches
21 --contains=<commit> print only branches that contain the commit
22 --abbrev=<n> use <n> digits to display SHA-1s
23
24 Specific git-branch actions:
25 -a list both remote-tracking and local branches
26 -d delete fully merged branch
27 -D delete branch (even if not merged)
28 -m move/rename a branch and its reflog
29 -M move/rename a branch, even if target exists
30 -l create the branch's reflog
31 -f, --force force creation (when already exists)
32 --no-merged=<commit> print only not merged branches
33 --merged=<commit> print only merged branches
34 `
35
36 args, _ := docopt.ParseDoc(usage)
37 fmt.Println(args)
38 }