aboutsummaryrefslogtreecommitdiffstats
path: root/utils/ioutil
Commit message (Collapse)AuthorAgeFilesLines
* utils: remove ioutil.Pipe and use std library io.PipeAyman Bagabas2023-11-133-29/+1
| | | | ioutil.Pipe literally calls io.Pipe.
* *: Remove use of deprecated io/utilPaulo Gomes2023-05-111-4/+4
| | | | Signed-off-by: Paulo Gomes <pjbgf@linux.com>
* plumbing: format/packfile, prevent large objects from being read into memory ↵zeripath2021-06-301-0/+40
| | | | | | | | | | | | | | | completely (#330) This PR adds code to prevent large objects from being read into memory from packfiles or the filesystem. Objects greater than 1Mb are now no longer directly stored in the cache or read completely into memory. This PR differs and improves the previous broken #323 by fixing several bugs in the reader and transparently wrapping ReaderAt as a Reader. Signed-off-by: Andrew Thornton <art27@cantab.net>
* Revert "plumbing: format/packfile, prevent large objects from being read ↵v5.4.2zeripath2021-06-021-22/+0
| | | | | into memory completely (#303)" (#329) This reverts commit 720c192831a890d0a36b4c6720b60411fa4a0159.
* plumbing: format/packfile, prevent large objects from being read into memory ↵v5.4.0zeripath2021-05-121-0/+22
| | | | | | | | | | | completely (#303) This PR adds code to prevent large objects from being read into memory from packfiles or the filesystem. Objects greater than 1Mb are now no longer directly stored in the cache or read completely into memory. Signed-off-by: Andrew Thornton <art27@cantab.net>
* utils: ioutil, Pipe implementatioMáximo Cuadros2021-05-023-1/+29
|
* examples,plumbing,utils: typo fixesferhat elmas2017-11-201-4/+4
|
* ioutil: Context and OnError helpersMáximo Cuadros2017-07-252-1/+197
|
* 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
|
* move plumbing from top level package to plumbing (#183)Santiago M. Mola2016-12-141-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* transport: new git protocol (#175)Máximo Cuadros2016-12-121-0/+12
|
* 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