# README
go-repo
Go-Repo is just wrapper arround git commands.
Clone a repository
r, err := Clone(path, "https://github.com/fsamin/go-repo.git")
...
Get current branch
r, err := Clone(path, "https://github.com/fsamin/go-repo.git")
...
b, err := r.CurrentBranch()
...
fmt.Println(b)
Fetch & Pull a remote branch
r, err := Clone(path, "https://github.com/fsamin/go-repo.git")
...
err = r.FetchRemoteBranch("origin", "tests")
...
err = r.Pull("origin", "tests")
...
Git local config
r, err := Clone(path, "https://github.com/fsamin/go-repo.git")
...
r.LocalConfigSet("foo", "bar", "value"))
val, err := r.LocalConfigGet("foo", "bar")
...
Search and open files
r, err := Clone(path, "https://github.com/fsamin/go-repo.git")
...
files, err := r.Glob("**/*.md")
...
f, err := r.Open(files[0])
...
# Packages
No description provided by the author
# Functions
Clone a git repository from the specified url to the destination path.
CloneBare a git bare repository from the specified url to the destination path.
InstallPGPKey install a pgp key in the repo configuration.
New instanciance a repo instance from the path assuming the repo has already been cloned in.
NewBare instanciance a bare repo instance from the path assuming the repo has already been cloned in.
WithHTTPAuth override the repo configuration to use http auth.
No description provided by the author
WithSSHAuth configure the git command to use a specific private key.
WithUser configure the git command to use user.
WithVerbose add some logs.
# Structs
AuthOpts is a optional structs for git command.
No description provided by the author
CloneOpts is a optional structs for git clone command.
Commit represent a git commit.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PGPKey is a type for a pgp key.
Repo is the main type of this lib.
SSHKey is a type for a ssh key.
No description provided by the author
No description provided by the author
# Type aliases
Option is a function option.