aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* fix fixtures usageMáximo Cuadros2016-10-264-5/+5
|
* Use advrefs in gituploadpackinfo (#92)Alberto Cortés2016-10-2620-636/+2946
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add advrefs encoder and parser * modify advrefs encoder to resemble json encoder * turn advrefs parser into a decoder * clean code * improve documentation * improve documentation * clean code * upgrade to new pktline.Add and add Flush const to easy integration * gometalinter * Use packp/advrefs for GitUploadPackInfo parsing - GitUploadPackInfo now uses packp/advrefs instead of parsing the message by itself. - Capabilities has been moved from clients/common to packp to avoid a circular import. - Cleaning of advrefs_test code. - Add support for prefix encoding and decoding in advrefs. * clean advrefs test code * clean advrefs test code * clean advrefs test code * gometalinter * add pktline encoder * change pktline.EncodeFlush to pktline.Flush * make scanner tests use the encoder instead of Pktlines * check errors on flush and clean constants * ubstitute the PktLines type with a pktline.Encoder * use pktline.Encoder in all go-git * add example of pktline.Encodef() * add package overview * documentation * support symbolic links other than HEAD * simplify decoding of shallows * packp: fix mcuadros comments - all abbreviates removed (by visual inspection, some may remain) - all empty maps are initialized using make - simplify readRef with a switch - make decodeShallow malformed error more verbose - add pktline.Encoder.encodeLine - remove infamous panic in checkPayloadLength by refactoring out the whole function
* utils/fs/test: add testing of stat on subdirs. (#99)Santiago M. Mola2016-10-261-0/+18
| | | | * Some 3rd party implementations had bugs on this that went unnoticed.
* formats: Index read support (#91)Máximo Cuadros2016-10-265-0/+1069
| | | | | | | | | | | | | | | | | | | | | | | | | | * utils: fs generic TestSuite * fs: fs.TempFile * utils: fs small changes requested * utils: fs, test fs.Create overwriting files * formats: index, basic v2 reader * formats: index, tree extension support * formats: index, stage decoding * formats: index, extended flags, v3 support * formats: index, v4 support * formats: index, Resolve undo support * formats: index, fix error when decoding invalidated entries * formats: index, fix style issues
* utils/fs: add test for create file in dir. (#95)Santiago M. Mola2016-10-251-0/+8
| | | | | | * Ensure that files can be created in a FS returned by Dir(). * Files created in a dir fs should have Filename() relative to dir's base.
* utils/fs: add Remove(). (#94)Santiago M. Mola2016-10-243-0/+28
|
* utils/fs: move 'os' and 'test' to separate packages. (#93)Santiago M. Mola2016-10-2410-115/+108
| | | | | | * create utils/fs/test package to expose generic test suite to 3rd party fs implementations. * move 'os' to its own package to avoid cyclic dependency (test -> fs -> test, becomes test -> fs, os -> test, os -> fs). * remove TestCreateAndWrite: some of our implementations cannot read a file that was just created, written and not closed yet.
* Fix pktline api (#89)v4.0.0-rc1Alberto Cortés2016-10-196-349/+408
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Change pktline API so you can add payloads The old pktline API only had one method: New, that receives the payloads and return the new PktLine, that was an io.Reader. This means you have to prepare the contents beforehand, in a [][]byte and then call the ctor to build the pktlines. Now, the construction of the pktlines and the method to add payloads are separated: New() // creates an empty PktLines AddFlush() Add(pp ...[]byte) AddString(pp ...string) and a PktLines has a public member R, which is the io.Reader of the pktlines added. * metalinter * change package name from pktlines to pktline * change package name from pktlines to pktline for true * make pktlines a reader instead of have a reader
* OSFile: implement io.ReaderAt. (#90)Santiago M. Mola2016-10-191-0/+4
|
* utils: fs.TempFile (#88)Máximo Cuadros2016-10-195-159/+236
| | | | | | | | | | * utils: fs generic TestSuite * fs: fs.TempFile * utils: fs small changes requested * utils: fs, test fs.Create overwriting files
* do not assume remotes are sorted chronologically (#87)Alberto Cortés2016-10-181-2/+8
|
* Substitute old pktline encoder/decoder with new pktline scanner (#84)Alberto Cortés2016-10-1813-417/+723
| | | | | | | | | | | | | | | | * replace old pktline package with new pktline scanner * remove error checks on pktline.NewFromString * fix deppend bug * reduce memory garbage when pktline.NewFromStrings * improve int to hex conversion to help gc * make intToHex func private * clean function names
* travis: fix ssh keyMáximo Cuadros2016-10-182-2/+1
|
* travis: install_keyMáximo Cuadros2016-10-181-0/+1
|
* travis: install_keyMáximo Cuadros2016-10-182-5/+6
|
* travis: skip decrypt on prsMáximo Cuadros2016-10-181-1/+2
|
* fix a typo in readme (#83)ferhat elmas2016-10-071-1/+1
| | | * s/shorted/sorted/
* fix travisMáximo Cuadros2016-09-294-4/+6
|
* force import from gokpg.inMáximo Cuadros2016-09-291-1/+1
|
* formats: objfile idomatic reader/writerMáximo Cuadros2016-09-2513-818/+758
|
* formats: packfile improving test coverageMáximo Cuadros2016-09-242-2/+62
|
* storage: memory test improvements and coverageMáximo Cuadros2016-09-243-37/+135
|
* utils: fs/os improved code coverageMáximo Cuadros2016-09-232-6/+99
|
* fix tag iter testMáximo Cuadros2016-09-233-3/+25
|
* core: irmpoved tests coverageMáximo Cuadros2016-09-232-41/+156
|
* clients: ssh, check instead of assert, sinced is a wellknown bugMáximo Cuadros2016-09-221-1/+3
|
* test coverage improved, Remote.Refs and Repository.Refs returns error, ↵Máximo Cuadros2016-09-2215-350/+503
| | | | TreeWalker -> TreeIter
* cleanup old fixturesMáximo Cuadros2016-09-228-68/+82
|
* tags tests, Tag.String and Commit.StringMáximo Cuadros2016-09-217-151/+155
|
* fix buildMáximo Cuadros2016-09-205-15/+14
|
* dotgit: synced write packfile and index generationMáximo Cuadros2016-09-1511-101/+314
|
* fixtures: new fixture package being use in all packagesMáximo Cuadros2016-09-1217-404/+293
|
* format: packfile fix ReadObjectAt without decodeMáximo Cuadros2016-09-1110-89/+161
|
* storage: filesystem ref storage, and not not exists file handlingMáximo Cuadros2016-09-1010-34/+68
|
* format: idxfile sorted entriesMáximo Cuadros2016-09-103-2/+42
|
* storage: filesystem iter implementationMáximo Cuadros2016-09-091-7/+12
|
* storage: filesystem iter implementationMáximo Cuadros2016-09-094-40/+201
|
* format: packfile ignores the header if not readMáximo Cuadros2016-09-092-2/+40
|
* core: MultiObjectIterMáximo Cuadros2016-09-092-0/+94
|
* storage: filessytem read multiple packfiles support and index decodingMáximo Cuadros2016-09-0910-2953/+315
|
* format: idxfile.Encoder fix fanout generatorMáximo Cuadros2016-09-093-15/+5
|
* format: packfile based on ObjectStorage and CRC32 calculationMáximo Cuadros2016-09-0816-739/+531
|
* format: packfile buffered readerMáximo Cuadros2016-09-071-10/+25
|
* format: packfile new interfaceMáximo Cuadros2016-09-0722-248/+356
|
* format: packfile new interface (wip)Máximo Cuadros2016-09-0612-851/+407
|
* storage: filesystem idx generation (wip)Máximo Cuadros2016-09-069-427/+341
|
* utils: fs new implementationMáximo Cuadros2016-09-063-149/+178
|
* core: ObjectStorage.WriterMáximo Cuadros2016-09-056-14/+118
|
* core: ObjectStorage.Begin and TxObjectStorageMáximo Cuadros2016-09-0514-38/+180
|
* storage: idiomatic test suiteMáximo Cuadros2016-09-052-27/+51
|