aboutsummaryrefslogtreecommitdiffstats
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
* worktree: normalized string comparison testsMáximo Cuadros2017-08-021-1/+11
|
* Normalize filenames before comparing.Josh Betz2017-07-311-1/+7
| | | | | | | | | Some multibyte characters can have multiple representations. Before comparing strings, we need to normalize them. In this case we're normalizing to normalized form C, but it shouldn't matter as long as both strings are normalized to the same form. Fixes https://github.com/src-d/go-git/issues/495
* format: idxfile, support for >2Gb packfilesMáximo Cuadros2017-07-272-1/+17
|
* ioutil: Context and OnError helpersMáximo Cuadros2017-07-252-1/+197
|
* utils: merkletrie filesystem based on path, and not in filepathMáximo Cuadros2017-07-193-14/+14
|
* utils: merkletrie fix test on windowsMáximo Cuadros2017-07-182-16/+23
|
* remote: fix Worktree.Status on empty repositoryMáximo Cuadros2017-07-132-2/+13
|
* utils: merkletrie support for symlinksMáximo Cuadros2017-06-182-6/+54
|
* *: upgrade to go-billy.v3, mergeMáximo Cuadros2017-06-182-5/+5
|
* format/diff: unified diff encoder and public APIAntonio Jesus Navarro Perez2017-05-232-0/+55
| | | | | | | | | - 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
* *: applying new index.Index changesMáximo Cuadros2017-04-262-9/+13
|
* fix format string issues as found by go vetSantiago M. Mola2017-04-263-5/+5
|
* worktree: reset and checkout support for submodulesMáximo Cuadros2017-04-152-12/+81
|
* merkletrie: filesystem and index speedup and documentationMáximo Cuadros2017-04-114-211/+179
|
* merkletrie: node support for billy filesystemsMáximo Cuadros2017-04-112-0/+255
|
* merkletrie: node support for index fileMáximo Cuadros2017-04-112-0/+229
|
* project: move imports from srcd.works to gopkg.inAntonio Jesus Navarro Perez2017-03-0718-25/+25
| | | | To be able to fix #261 we will move again to gopkg.in before v4 stable release.
* Return values of Read not checked (fix #65)Antonio Jesus Navarro Perez2017-03-021-1/+1
|
* Fix issue 275 (edited) (#276)Alberto Cortés2017-02-228-81/+302
| | | | | | | | | Fix #275 . It was not possible to write a test for this issue as the original fsnoder didn't support filenames with length > 1. Therefore this patch has 3 commits: add support for long filenames in fsnoder. add a test case for the issue using the new long filenames from step 1. fix the issue by comparing paths level by level instead of lexigographically over the whole path.
* merkletrie: fix const action type fuck up (#268)Alberto Cortés2017-02-142-1/+12
| | | | Action constants (Insert, Delete, Modify) have type int instead of Action. This patch make them Actions.
* simplify noder mocks in test (#265)Alberto Cortés2017-02-132-18/+4
|
* add difftree for noders (#262)Alberto Cortés2017-02-137-13/+1246
| | | | | difftree for noders
* Merge pull request #259 from smola/docsMáximo Cuadros2017-02-082-14/+27
|\ | | | | Improve documentation
| * doc: improve ioutil.CheckClose doc and example, fix #246.Santiago M. Mola2017-02-062-14/+26
| | | | | | | | | | | | * Use a proper executable example, instead of one in the comment. * Improve wording of CheckClose godoc.
| * doc: add package documentation for utils/ioutil, fix #246.Santiago M. Mola2017-02-061-0/+1
| |
* | add merkletrie iterator and its helper frame type (#252)Alberto Cortés2017-02-064-0/+873
|/ | | | | | | | * add merkletrie iterator and its helper frame type * requested changes by mcuadros * reuqested changes: smola
* new srcd.works/go-git.v4 pathMáximo Cuadros2017-01-309-9/+9
|
* delete old noder, create a new one in utils (#241)Alberto Cortés2017-01-3011-0/+1466
|
* Extract billy (#173)Sergio Arbeo2016-12-196-1148/+0
| | | | | | | | | | | | | | | * Extract billy Billy is a new library directly extracted from go-git. It abstract several storages systems in a filesystem interface. More in github.com/src-d/billy * Fix grouping in imports block * Update billy to v1 * Re-remove fs_implementation example
* move plumbing from top level package to plumbing (#183)Santiago M. Mola2016-12-144-0/+174
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* format/packfile: implement delta encoding (#172)Antonio Navarro Perez2016-12-142-0/+30
| | | | | | | | | | | | * 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
* transport: new git protocol (#175)Máximo Cuadros2016-12-121-0/+12
|
* revision based on goreportcard.comMáximo Cuadros2016-12-061-1/+1
|
* plumbing/transport: add common tests and fixes. (#136)Santiago M. Mola2016-11-252-0/+107
| | | | | | | | | | | | | | | | | | | * plumbing/transport: add common tests and fixes. * add common test suite for different transport implementations. * fix different behaviour on error handling for ssh and http. fixes issue #123. * support detecting unexisting repositories with SSH + GitHub/Bitbucket (apparently, there is no standard for all SSH servers). * remove ssh.NewClient (only DefaultClient makes sense at the moment). * make ssh.Client and http.Client private. * utils/ioutil: utilities to work with io interfaces. * * transport: test actual objects fetched, not just packfile size. * * fix doc typo. * * improve UploadPackRequest.IsEmpty
* utils: fs, memory fix read offsetMáximo Cuadros2016-11-202-1/+23
|
* utils: fs, memory fix ReadDir, error getting filenameMáximo Cuadros2016-11-202-1/+43
|
* utils/fs: add ReadAt to memory file and tests. (#122)Santiago M. Mola2016-11-113-2/+46
| | | | * memory files now implement io.ReaderAt. * tests now check ReadAt behaviour.
* new plumbing package (#118)Máximo Cuadros2016-11-082-7/+7
| | | * plumbing: now core was renamed to core, and formats and clients moved inside
* utils/fs: added test for open-read-seek. (#117)v4.0.0-rc3Santiago M. Mola2016-11-071-1/+24
| | | | Previously we tested only seek on created files, not opened.
* utils/fs: Fix O_CREATE flag check in OpenFile (#116)Pierre Guilleminot2016-11-072-1/+9
| | | | | | * utils/fs: Fix O_CREATE flag check in OpenFile * utils/fs/os: test that Open does not create dirs.
* utils: fs, new memory filesystem (#108)Máximo Cuadros2016-11-046-5/+435
| | | | | | | | * utils: fs, new memory filesystem * utils: fs, renamed os.NewOS to os.New * utils: fs, memory changes requested by @alcortes
* utils/fs: add OpenFile method to filesystem interface. (#104)Santiago M. Mola2016-10-313-52/+163
| | | | | | | | | | | | * utils/fs: add OpenFile method to filesystem interface. * added OpenFile to fs.Filesystem interface. * added OpenFile implementation to 'os' filesystem. * bring back BaseFile. * utils/fs/os: do not use wildcard import. * utils/fs/os: implement Open and Create using OpenFile.
* utils: binary, new package that collect all the spare helper functions about ↵Máximo Cuadros2016-10-314-0/+284
| | | | binary operations (#102)
* 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.
* 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-245-105/+97
| | | | | | * 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.
* OSFile: implement io.ReaderAt. (#90)Santiago M. Mola2016-10-191-0/+4
|
* utils: fs.TempFile (#88)Máximo Cuadros2016-10-194-148/+233
| | | | | | | | | | * utils: fs generic TestSuite * fs: fs.TempFile * utils: fs small changes requested * utils: fs, test fs.Create overwriting files
* formats: objfile idomatic reader/writerMáximo Cuadros2016-09-251-5/+18
|