Documentation ¶
Index ¶
- Constants
- func GetChangeAction(change *object.Change) string
- func GetChangeContent(change *object.Change) (result string, contentError error)
- func GetChangePath(change *object.Change) string
- func GetChanges(commit *object.Commit, repo *git.Repository) (object.Changes, error)
- func GetRepositoryHistory(repository *git.Repository) ([]*object.Commit, error)
Constants ¶
const (
EmptyTreeCommitID = "4b825dc642cb6eb9a060e54bf8d69288fbee4904"
)
EmptyTreeCommit is a dummy commit id used as a placeholder and for testing
Variables ¶
This section is empty.
Functions ¶
func GetChangeAction ¶
GetChangeAction returns a more condensed and user friendly action for further reference
func GetChangeContent ¶
GetChangeContent will get the contents of a git change or patch.
func GetChangePath ¶
GetChangePath will set the action of the commit for further action
func GetChanges ¶
GetChanges will get the changes between to specific commits. It grabs the parent commit of the one being passed and uses that to fetch the tree for that commit. If no commit is found, it will create a fake on. It then takes that parent tree along with the tree for the commit passed in and does a diff
func GetRepositoryHistory ¶
GetRepositoryHistory gets the commit history of a repository
Types ¶
This section is empty.