package
Version:
v0.0.0-...-1e4df44
Opens a new window with list of versions in this module.
Published: Oct 14, 2014
License: Apache-2.0
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type MemoryGit struct {
}
New returns an in-memory simple git repo
AddFile adds a file to the repo.
To pass git fsck, all the file names must be sorted.
Commit commits all the added files to the repo with the specific message and time.
Commit will automatically be called if you call HttpHandler().
HttpHandler returns an http.Handler to serve the repo over http.
It will automatically strip the prefix from r.URL.Path.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.