Documentation
¶
Index ¶
- Variables
- func RepoID(commonDir string) string
- func SafeName(s string) string
- func SessionRef(sessionID string) string
- type Repo
- type Shadow
- func (s *Shadow) CommitTree(tree, message string, parents ...string) (string, error)
- func (s *Shadow) DeleteSession(sessionID string) error
- func (s *Shadow) EmptyTree() (string, error)
- func (s *Shadow) GC() error
- func (s *Shadow) Git() gitx.Git
- func (s *Shadow) Head(sessionID string) string
- func (s *Shadow) Take(sessionID, label string) (string, error)
- func (s *Shadow) TreeOf(commit string) (string, error)
- func (s *Shadow) WriteIndexTree(userIndex string) (string, error)
- func (s *Shadow) WriteTree(indexName string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotGit = errors.New("not inside a git repository")
Functions ¶
func SessionRef ¶
Types ¶
type Shadow ¶
func (*Shadow) CommitTree ¶
func (*Shadow) DeleteSession ¶
func (*Shadow) Take ¶
Take records the working tree as a new commit on the session's chain. The first snapshot of a session has the user's HEAD as its parent.
func (*Shadow) WriteIndexTree ¶
WriteIndexTree writes the tree of a copy of a user index, so git can not touch the user's index file.
Click to show internal directories.
Click to hide internal directories.