Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Clean reconstructed objects outside pack window | Javi Fontan | 2018-01-11 | 1 | -13/+19 |
| | | | | | | | | | | | Object walk reconstructs delta objects but these are not cleaned up after they got out the pack window. Without this change all reconstructed objects reside in memory. restoreOriginal call is moved before calling Size(). Now we can not guarantee that the object is already undeltified. Signed-off-by: Javi Fontan <javier@sourced.tech> | ||||
* | fix typo | Wells Johnston | 2018-01-08 | 1 | -1/+1 |
| | |||||
* | Merge pull request #698 from jfontan/improvement/use-decoder-cache | Máximo Cuadros | 2017-12-20 | 5 | -58/+106 |
|\ | | | | | plumbing: cache, enforce the use of cache in packfile decoder | ||||
| * | Exercise NewObjectLRUDefault in testing | Javi Fontan | 2017-12-20 | 1 | -41/+60 |
| | | | | | | | | Signed-off-by: Javi Fontan <jfontan@gmail.com> | ||||
| * | Make DeltaBaseCache private | Javi Fontan | 2017-12-20 | 1 | -6/+13 |
| | | | | | | | | Signed-off-by: Javi Fontan <jfontan@gmail.com> | ||||
| * | Fix typo and documentation of NewDecoderForType | Javi Fontan | 2017-12-20 | 1 | -3/+3 |
| | | | | | | | | Signed-off-by: Javi Fontan <jfontan@gmail.com> | ||||
| * | Enforce the use of cache in packfile decoder | Javi Fontan | 2017-12-20 | 4 | -12/+34 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Decoder object can make use of an object cache to speed up processing. Previously the only way to specify it was changing manually the struct generated by NewDecodeForFile. This lead to some instances to be created without it and penalized performance. Now the cache should be explicitly passed to the constructor function. NewDecoder now creates objects with a cache using the default size. A new helper function was added to create cache objects with the default size as this becomes a common task now: cache.NewObjectLRUDefault() Signed-off-by: Javi Fontan <jfontan@gmail.com> | ||||
* | | Improve delta reutilization | Antonio Jesus Navarro Perez | 2017-12-20 | 5 | -29/+152 |
|/ | | | | | | | | | | | - Remove wrong 'if' on delta selector that causes poor delta reutilizations - packfile.Encoder now can write deltas and objects in a non specific order - ObjectToPack now saves the Offset on the packfile to be able to obtain base offset in a recursive manner and write them before the delta itself - Added encoder test to check cyclic delta chains - Check the output packfile hash in all encoder tests Signed-off-by: Antonio Jesus Navarro Perez <antnavper@gmail.com> | ||||
* | plumbing: transport ssh, ssh_config implementation | Máximo Cuadros | 2017-12-11 | 2 | -12/+107 |
| | | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com> | ||||
* | check .ssh/config for host and port overrides; fixes #629 | Robert Smith | 2017-12-09 | 1 | -0/+15 |
| | |||||
* | format: diff, remove error when two files are empty, submodules are simply ↵ | Máximo Cuadros | 2017-12-07 | 2 | -5/+2 |
| | | | | | | ignored Signed-off-by: Máximo Cuadros <mcuadros@gmail.com> | ||||
* | object: patch, test patch on submodules | Máximo Cuadros | 2017-12-07 | 1 | -0/+44 |
| | |||||
* | Ignore empty patches when calculating stats (fixes #654) | Alexandr Krylovskiy | 2017-12-04 | 1 | -0/+5 |
| | |||||
* | Fix revision solver for branch and tag (#660) | Anthony HAMON | 2017-12-01 | 1 | -3/+3 |
| | | | fix Repository.ResolveRevision for branch and tag | ||||
* | Merge pull request #672 from ferhatelmas/gofmt-s | Máximo Cuadros | 2017-12-01 | 10 | -10/+10 |
|\ | | | | | all: gofmt -s | ||||
| * | all: gofmt -s | ferhat elmas | 2017-11-30 | 10 | -10/+10 |
| | | |||||
* | | storer: separate loose and packed object mgmt into optional ifaces | Jeremy Stribling | 2017-11-29 | 2 | -36/+25 |
| | | | | | | | | Suggested by mcuadros. | ||||
* | | plumbing: add `HasEncodedObject` method to Storer | Jeremy Stribling | 2017-11-29 | 1 | -0/+9 |
| | | | | | | | | | | | | | | This allows the user to check whether an object exists, without reading all the object data from storage. Issue: KBFS-2445 | ||||
* | | Make object repacking more configurable | Taru Karttunen | 2017-11-29 | 2 | -2/+7 |
| | | |||||
* | | Support for repacking objects | Taru Karttunen | 2017-11-29 | 2 | -0/+9 |
| | | |||||
* | | Address CI and move code around | Taru Karttunen | 2017-11-29 | 1 | -2/+4 |
| | | |||||
* | | First pass of prune design | Taru Karttunen | 2017-11-29 | 2 | -0/+27 |
| | | |||||
* | | filesystem: implement PackRefs() | Jeremy Stribling | 2017-11-29 | 1 | -0/+2 |
|/ | | | | | | | | | | Currently this implementation is only valid for kbfsgit, since it assumes some things about the filesystem not being updated during the packing, and about conflict resolution rules. In the future, it would be nice to replace this with a more general one, and move this kbfsgit-optimized implementation into kbfsgit. Issue: KBFS-2517 | ||||
* | all: simplification | ferhat elmas | 2017-11-29 | 15 | -71/+29 |
| | | | | | | | | | | - no length for map initialization - don't check for boolean/error return - don't format string - use string method of bytes buffer instead of converting bytes to string - use `strings.Contains` instead of `strings.Index` - use `bytes.Equal` instead of `bytes.Compare` | ||||
* | dotgit: add CheckAndSetReference tests | Jeremy Stribling | 2017-11-28 | 1 | -0/+4 |
| | |||||
* | Use optionally locking when updating refs | Taru Karttunen | 2017-11-27 | 1 | -0/+1 |
| | |||||
* | plumbing/transport: Fix truncated comment in Endpoint | Ori Rawlings | 2017-11-27 | 1 | -1/+1 |
| | |||||
* | all: fixes for ineffective assign | ferhat elmas | 2017-11-26 | 1 | -0/+1 |
| | |||||
* | plumbing: object/{commit,tag}, encode method with sig optional | Sunny | 2017-11-24 | 2 | -11/+14 |
| | | | | | Adds Commit.encode() and Tag.encode() with optional `includeSig` parameter to include or exclude signature from the encoded object. | ||||
* | plumbing: object/tag, add signature verification | Sunny | 2017-11-24 | 2 | -0/+94 |
| | |||||
* | plumbing: object/tag, add PGPSignature support | Sunny | 2017-11-24 | 2 | -1/+69 |
| | |||||
* | Close http.Body reader when needed | Antonio Jesus Navarro Perez | 2017-11-24 | 1 | -1/+3 |
| | | | | If we don't do that, all the goroutines opened by the Body Reader are never closed, causing a 'fatal: morestack on g0' error. | ||||
* | test: plumbing/object fix Commit.Verify test | Sunny | 2017-11-24 | 1 | -2/+3 |
| | | | | | Test was failing because of the relative time zone attached to the commit. Adding a fixed location to the time fixes the issue. | ||||
* | Merge pull request #653 from darkowlzz/verify-commit | Máximo Cuadros | 2017-11-24 | 2 | -0/+95 |
|\ | | | | | plumbing: object, new Commit.Verify method | ||||
| * | test: plumbing.object, add test for Commit.Verify | Sunny | 2017-11-23 | 1 | -0/+65 |
| | | |||||
| * | plumbing: object, add Commit.Verify method | Sunny | 2017-11-23 | 1 | -0/+30 |
| | | | | | | | | | | Commit.Verify() performs PGP verification of a signed commit given an armored keyring. | ||||
* | | update to go-billy.v4 and go-git-fixtures.v3 | Máximo Cuadros | 2017-11-23 | 32 | -42/+37 |
| | | | | | | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com> | ||||
* | | plumbing/object: add test for finding tree entry | ferhat elmas | 2017-11-22 | 1 | -0/+37 |
| | | |||||
* | | plumbing/object: do not eat error on tree decode | ferhat elmas | 2017-11-21 | 1 | -2/+2 |
|/ | |||||
* | transport: made public all the fields and standardize AuthMethod | Máximo Cuadros | 2017-11-21 | 5 | -55/+59 |
| | | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com> | ||||
* | *: add pointer to the new transport.Endpoint struct | Máximo Cuadros | 2017-11-21 | 22 | -101/+82 |
| | | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com> | ||||
* | transport: converts Endpoint interface into a struct | Máximo Cuadros | 2017-11-21 | 2 | -167/+195 |
| | | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com> | ||||
* | transport: git and http, full mocked tests | Máximo Cuadros | 2017-11-20 | 2 | -8/+7 |
| | | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com> | ||||
* | transport: git and http, full mocked tests | Máximo Cuadros | 2017-11-20 | 6 | -243/+211 |
| | | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com> | ||||
* | transport: ssh, mocked SSH server, fixes #332 | Máximo Cuadros | 2017-11-20 | 1 | -16/+108 |
| | | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com> | ||||
* | transport: ssh, fixes override HostKeyCallback from DefaultClient | Máximo Cuadros | 2017-11-20 | 2 | -4/+2 |
| | | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com> | ||||
* | Merge pull request #647 from ferhatelmas/typo-fixes | Máximo Cuadros | 2017-11-20 | 7 | -10/+10 |
|\ | | | | | examples,plumbing,utils: typo fixes | ||||
| * | examples,plumbing,utils: typo fixes | ferhat elmas | 2017-11-20 | 7 | -10/+10 |
| | | |||||
* | | Merge pull request #646 from mcuadros/decode-object-at-fix | Máximo Cuadros | 2017-11-20 | 2 | -4/+29 |
|\ \ | |/ |/| | format: packfile fix DecodeObjectAt when Decoder has type | ||||
| * | format: packfile fix DecodeObjectAt when Decoder has type | Máximo Cuadros | 2017-11-19 | 2 | -4/+29 |
| | | | | | | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com> |