aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/storer/storer.go
Commit message (Collapse)AuthorAgeFilesLines
* fix gofmtSantiago M. Mola2017-06-131-1/+1
|
* storage/filesystem: call initialization explicitely, fixes #408Santiago M. Mola2017-06-011-0/+8
| | | | | | | | | | | | | filesystem.Storage was initializing the gitdir (creating objects and refs) on NewStorage. But this should be done only on init and clone operations, not on open. Now there is a new interface storer.Initializer that storers can implement if they need any initialization step before init or clone. filesystem.Storage is one of such implementations. git.Init and git.Clone now call to the storer Init() method if it does implement it. Otherwise, it just ignores initialization.
* server: add git server implementation (#190)Santiago M. Mola2017-01-041-0/+7
* server: add generic server implementation (transport-independent), both for git-upload-pack and git-receive-pack. * server: move internal functions to internal/common. * cli: add git-receive-pack and git-upload-pack implementations. * format/packfile: add UpdateObjectStorage function, extracted from Remote. * transport: implement tranport RPC-like, only with git-upload-pack and git-receive-pack methods. Client renamed to Transport. * storer: add storer.Storer interface. * protocol/packp: add UploadPackResponse constructor with packfile. * protocol/packp: fix UploadPackResponse encoding, add tests. * protocol/packp/capability: implement All.