| 1 | package main |
| 2 | |
| 3 | import ( |
| 4 | "fmt" |
| 5 | "github.com/docopt/docopt-go" |
| 6 | ) |
| 7 | |
| 8 | func main() { |
| 9 | usage := `usage: git checkout [options] <branch> |
| 10 | git checkout [options] <branch> -- <file>... |
| 11 | |
| 12 | options: |
| 13 | -q, --quiet suppress progress reporting |
| 14 | -b <branch> create and checkout a new branch |
| 15 | -B <branch> create/reset and checkout a branch |
| 16 | -l create reflog for new branch |
| 17 | -t, --track set upstream info for new branch |
| 18 | --orphan <new branch> |
| 19 | new unparented branch |
| 20 | -2, --ours checkout our version for unmerged files |
| 21 | -3, --theirs checkout their version for unmerged files |
| 22 | -f, --force force checkout (throw away local modifications) |
| 23 | -m, --merge perform a 3-way merge with the new branch |
| 24 | --conflict <style> conflict style (merge or diff3) |
| 25 | -p, --patch select hunks interactively |
| 26 | ` |
| 27 | |
| 28 | args, _ := docopt.ParseDoc(usage) |
| 29 | fmt.Println(args) |
| 30 | } |