Documentation ¶
Overview ¶
Easy Repo
Index ¶
- func CreateBranch(repo *git.Repository, parentHash, name string) (*git.Branch, error)
- func CreateBranchFromCommit(repo *git.Repository, parent *git.Commit, name string) (*git.Branch, error)
- func CreateCommit(repo *git.Repository, branch string, c *Commit) (*git.Oid, error)
- func CreateFirstCommit(repo *git.Repository, c *Commit) (*git.Oid, error)
- func CreateRepo(path string) (*git.Repository, error)
- func DeleteBranch(repo *git.Repository, branch string) error
- func DeleteRepo(path string) error
- func GetCommit(repo *git.Repository, hash string) (*git.Commit, error)
- func GetHead(repo *git.Repository, branch string) (*git.Commit, error)
- func MergeBranches(repo *git.Repository, ours, theirs string) (string, error)
- func OpenRepo(path string) (*git.Repository, error)
- type Commit
- type DiffResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBranch ¶
func CreateBranchFromCommit ¶
func CreateCommit ¶
func CreateFirstCommit ¶
func CreateRepo ¶
func CreateRepo(path string) (*git.Repository, error)
func DeleteBranch ¶
func DeleteBranch(repo *git.Repository, branch string) error
func DeleteRepo ¶
func MergeBranches ¶
func MergeBranches(repo *git.Repository, ours, theirs string) (string, error)
Types ¶
type Commit ¶
func GetEasyCommit ¶
func GetEasyCommitByHash ¶
func GetEasyCommitByHash(repo *git.Repository, hash, filename string) (*Commit, error)
func GetHeadBody ¶
func GetHeadBody(repo *git.Repository, branch, filename string) (*Commit, error)
type DiffResponse ¶
type DiffResponse struct {
Body string
}
func DiffCommits ¶
func DiffCommits(repo *git.Repository, ours, theirs string) (*DiffResponse, error)
Click to show internal directories.
Click to hide internal directories.