Skip to content

richardjennings/g

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

G

Learning Git internals by writing a Git in Go.

CLI

go run ./cmd/g --help

Library

// new repo
repo, _ := g.Init(g.WithPath("/tmp/myrepo"))

// existing repo
repo, _ := g.Open(g.WithPath("/tmp/myrepo"))

// status, commit
status, _ := repo.Status()
repo.Commit(&g.Commit{...})

// branches
repo.CreateBranch("feature")
repo.Switch("feature")
branches, _ := repo.Branches()

About

Git in Go

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors