Documentation
¶
Index ¶
- func Amend(ca *git.Commit, msg string) (*git.Commit, error)
- func Commit(r *git.Repository, msg string) (*git.Commit, error)
- func CommitMsgHook(root string, in string) (msg string, err error)
- func Getrepo() (*git2go.Repository, error)
- func ParseRemote(r *git.Repository, name string, fallback bool) (*url.URL, error)
- func PostCommitHook(root string) error
- func PreCommitHook(root string) error
- func PrepareCommitMsgHook(root string) (msg string, err error)
- func RepoTree(r *git.Repository) (*git.Tree, error)
- func StageReady(r *git.Repository) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Getrepo ¶
func Getrepo() (*git2go.Repository, error)
Getrepo returns the repository in the current directory or an error.
func ParseRemote ¶
func PostCommitHook ¶
func PreCommitHook ¶
func PrepareCommitMsgHook ¶
func RepoTree ¶
func RepoTree(r *git.Repository) (*git.Tree, error)
RepoTree return the current index tree
func StageReady ¶
func StageReady(r *git.Repository) (bool, error)
StageReady returns true if the stage is ready to be committed. Otherwise it returns false if there is nothing to commit or an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.