Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Conversation

@JoshuaSjoding
Copy link
Contributor

  • New function signatures provide the necessary interface to stream data from disk when using filesystem-based storage in the future
  • New function signatures provide proper error handling
  • ObjectReader and ObjectWriter interfaces added to avoid future refactoring, currently are type aliases for io.ReadCloser and io.WriteCloser respectively
  • Object.Reader now returns (ObjectReader, error)
  • Object.Writer now returns (ObjectWriter, error)
  • File.Contents now returns (string, error)
  • File.Lines now returns ([]string, error)
  • Blob.Reader now returns (core.ObjectReader, error)
  • Added internal close helper function for deferred calls to Close that need to check the return value

* New function signatures provide the necessary interface to stream data from disk when using filesystem-based storage in the future
* New function signatures provide proper error handling
* ObjectReader and ObjectWriter interfaces added to avoid future refactoring, currently are type aliases for io.ReadCloser and io.WriteCloser respectively
* Object.Reader now returns (ObjectReader, error)
* Object.Writer now returns (ObjectWriter, error)
* File.Contents now returns (string, error)
* File.Lines now returns ([]string, error)
* Blob.Reader now returns (core.ObjectReader, error)
* Added internal close helper function for deferred calls to Close that need to check the return value
@codecov-io
Copy link

Current coverage is 60.13%

Merging #34 into master will decrease coverage by -1.06% as of 68de955

@@            master     #34   diff @@
======================================
  Files           28      28       
  Stmts         1523    1583    +60
  Branches       221     240    +19
  Methods          0       0       
======================================
+ Hit            932     952    +20
- Partial        110     129    +19
- Missed         481     502    +21

Review entire Coverage Diff as of 68de955

Powered by Codecov. Updated on successful CI builds.

@mcuadros
Copy link
Contributor

Make sense.

mcuadros added a commit that referenced this pull request Feb 25, 2016
Refactor to use core.ObjectReader and core.ObjectWriter
@mcuadros mcuadros merged commit e59f31c into src-d:master Feb 25, 2016
@JoshuaSjoding JoshuaSjoding deleted the object-reader-writer branch June 24, 2016 09:14
mcuadros added a commit that referenced this pull request Jan 31, 2017
Refactor to use core.ObjectReader and core.ObjectWriter
gsalingu-ovhus pushed a commit to gsalingu-ovhus/go-git that referenced this pull request Mar 28, 2019
Add FAQ in README, with nginx problem
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants