Documentation
¶
Overview ¶
Package git is the git adapter of the version-control interface: it reads the history of a git repository for Physa through the git command. A Repo only reads. Writes go only through a Writer, for learning's branch: it fetches from origin, makes isolated working copies under Physa's store, moves a branch by compare-and-swap and pushes with a lease. It never changes the person's working copy, index or checked-out branch.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Email ¶
Email reads user.email from every scope git reads, for the repository at dir or outside any. It is "" with no error when unset: git config exits 1, printing nothing. It never reads user.name.
func Open ¶
Open returns the repository that contains dir. It returns vcs.ErrNotRepo when dir is not in one, and a wrapped error when git cannot run.
Types ¶
This section is empty.