Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gi ¶
type Gi struct {
// contains filtered or unexported fields
}
Gi is the object to handle data of the remote repository.
func (*Gi) ListGitIgnorePath ¶
ListGitIgnorePath returns the list that contains the filepath of gitignore.
type Repository ¶ added in v0.2.0
type Repository interface {
// GetTree returns contents sorted by the path.
GetTree(ctx context.Context, recursive bool) ([]*TreeNode, error)
// GetBlob returns the decoded content of the specified SHA.
GetBlob(ctx context.Context, sha string) ([]byte, error)
}
Repository is the place that stores gitignore files
type TreeNode ¶
TreeNode is the object that represents a content stored in the repository. NOTE: https://git-scm.com/book/en/v2/Git-Internals-Git-Objects/#_tree_objects
Click to show internal directories.
Click to hide internal directories.