Documentation
¶
Overview ¶
git manipulates on disk git repositories.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blob ¶
type Blob struct { Size int64 io.ReadCloser }
type Commit ¶
type Commit struct { *Repository // contains filtered or unexported fields }
Commit represents a commit object.
type Repository ¶
type Repository struct { // Root is the base path to the repository Root string }
Repository represents a git repository.
func Open ¶
func Open(p string) (*Repository, error)
Open returns a Repository representing the git repository that contains path. Open walks up the directory heirarchy until it finds a path with a .git, or it hits the root of the file system.
Click to show internal directories.
Click to hide internal directories.