stable
Clone or download
Read-only
Currently Tuleap computes the SHA-256 (aka the OID) of the object after the save. This contribution avoids wasting IO by computing the SHA-256 of the received object while saving it. This is part of story #12322: have git-lfs batch and basic transfer API Change-Id: I4486dcbc372b2c483f87b13e852cc39f08afe8ad
Modified Files
Name | ||||
---|---|---|---|---|
A | plugins/gitlfs/include/StreamFilter/FilterHandle.php | +53 | −0 | Go to diff View file |
A | plugins/gitlfs/include/StreamFilter/FilterInterface.php | +34 | −0 | Go to diff View file |
A | plugins/gitlfs/include/StreamFilter/FilteringProcessResponse.php | +29 | −0 | Go to diff View file |
A | plugins/gitlfs/include/StreamFilter/StreamFilter.php | +80 | −0 | Go to diff View file |
A | plugins/gitlfs/include/StreamFilter/StreamFilterWrapper.php | +54 | −0 | Go to diff View file |
M | plugins/gitlfs/include/Transfer/Basic/LFSBasicTransferObjectSaver.php | +13 | −11 | Go to diff View file |
A | plugins/gitlfs/include/Transfer/Basic/SHA256ComputeOnReadFilter.php | +58 | −0 | Go to diff View file |
A | plugins/gitlfs/phpunit/StreamFilter/FilterHandleTest.php | +59 | −0 | Go to diff View file |
A | plugins/gitlfs/phpunit/StreamFilter/ReplaceDataFilter.php | +57 | −0 | Go to diff View file |
A | plugins/gitlfs/phpunit/StreamFilter/StreamFilterTest.php | +115 | −0 | Go to diff View file |
A | plugins/gitlfs/phpunit/StreamFilter/StreamFilterWrapperTest.php | +36 | −0 | Go to diff View file |
M | plugins/gitlfs/phpunit/Transfer/Basic/LFSBasicTransferObjectSaverTest.php | +17 | −8 | Go to diff View file |
A | plugins/gitlfs/phpunit/Transfer/Basic/SHA256ComputeOnReadFilterTest.php | +53 | −0 | Go to diff View file |