15 Commits

Author SHA1 Message Date
Zhizhen He
32975ee2c7 *: fix some typos
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
2023-09-08 09:30:43 +08:00
Oleg Kovalov
27a034c764 fix goreportcard warnings 2020-07-01 20:51:24 +02:00
Máximo Cuadros
2bdfd91f04 *: migration from gopkg to go modules 2020-03-10 00:40:56 +01:00
Arran Walker
262179b985 utils: binary reader, add ReadUntilFromBufioReader()
Signed-off-by: Arran Walker <arran.walker@fiveturns.org>
2019-04-22 17:10:29 +00:00
Arran Walker
5598068360 plumbing: format/index perf, buffered reads, reflection removal
Large performance increase by buffering reads.

There were a few instances where binary.Read() would end up using reflection on
&plumbing.Hash, rather than treating it as a byte slice. This has now been
resolved.

Signed-off-by: Arran Walker <arran.walker@fiveturns.org>
2019-04-21 14:38:51 +00:00
Máximo Cuadros
48900a1c81 format: idxfile, support for >2Gb packfiles 2017-07-27 09:34:58 +02:00
Antonio Jesus Navarro Perez
2f293f4a52 format/diff: unified diff encoder and public API
- Added Patch interface
- Added a Unified Diff encoder from Patches
- Added Change method to generate Patches
- Added Changes method to generate Patches
- Added Tree method to generate Patches
- Added Commit method to generate Patches
2017-05-23 11:05:14 +02:00
Antonio Jesus Navarro Perez
33e7c165c9 project: move imports from srcd.works to gopkg.in
To be able to fix #261 we will move again to gopkg.in before v4 stable release.
2017-03-07 12:58:18 +01:00
Antonio Jesus Navarro Perez
5bf511770f Return values of Read not checked (fix #65) 2017-03-02 16:01:26 +01:00
Máximo Cuadros
85a4efcc45 new srcd.works/go-git.v4 path 2017-01-30 23:52:39 +01:00
Santiago M. Mola
0af572dd21 move plumbing from top level package to plumbing (#183)
* plumbing: rename Object -> EncodedObject.

* plumbing/storer: rename ObjectStorer -> EncodedObjectStorer.

* move difftree to plumbing/difftree.

* move diff -> utils/diff

* make Object/Tag/Blob/Tree/Commit/File depend on storer.

* Object and its implementations now depend only on
  storer.EncodedObjectStorer, not git.Repository.
* Tests are decoupled accordingly.

* move Object/Commit/File/Tag/Tree to plumbing/object.

* move Object/Commit/File/Tag/Tree to plumbing/object.
* move checkClose to utils/ioutil.

* move RevListObjects to plumbing/revlist.Objects.

* move DiffTree to plumbing/difftree package.

* rename files with plural nouns to singular

* plumbing/object: add GetBlob/GetCommit/GetTag/GetTree.
2016-12-14 23:12:44 +01:00
Antonio Navarro Perez
500b1e1e18 format/packfile: implement delta encoding (#172)
* format/packfile: implement delta encoding

- Added all the logic to the encoder to be able to encode ref-delta and offset-delta objects
- Created plumbing.ObjectToPack to handle deltas and standard objects when we are writting them into a packfile
- Added specific encoder delta tests, one standard object and one delta, and one standard object and two deltas

* Requested changes.

* Requested changes
2016-12-14 10:20:00 +01:00
Máximo Cuadros
ac095bb12c new plumbing package (#118)
* plumbing: now core was renamed to core, and formats and clients moved inside
2016-11-08 23:46:38 +01:00
Máximo Cuadros
3a85c05bcf utils: fs, new memory filesystem (#108)
* utils: fs, new memory filesystem

* utils: fs, renamed os.NewOS to os.New

* utils: fs, memory changes requested by @alcortes
2016-11-04 12:29:00 +01:00
Máximo Cuadros
659386309f utils: binary, new package that collect all the spare helper functions about binary operations (#102) 2016-10-31 14:56:38 +00:00