Debian Codegraph @

examples/fake-git/clone/git_clone.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 clone [options] [--] <repo> [<dir>]
10
11 options:
12 -v, --verbose be more verbose
13 -q, --quiet be more quiet
14 --progress force progress reporting
15 -n, --no-checkout don't create a checkout
16 --bare create a bare repository
17 --mirror create a mirror repository (implies bare)
18 -l, --local to clone from a local repository
19 --no-hardlinks don't use local hardlinks, always copy
20 -s, --shared setup as shared repository
21 --recursive initialize submodules in the clone
22 --recurse-submodules initialize submodules in the clone
23 --template <template-directory>
24 directory from which templates will be used
25 --reference <repo> reference repository
26 -o, --origin <branch>
27 use <branch> instead of 'origin' to track upstream
28 -b, --branch <branch>
29 checkout <branch> instead of the remote's HEAD
30 -u, --upload-pack <path>
31 path to git-upload-pack on the remote
32 --depth <depth> create a shallow clone of that depth
33 `
34
35 args, _ := docopt.ParseDoc(usage)
36 fmt.Println(args)
37 }