Use io reader for GetFormatPatch #105

Merged
lunny merged 1 commits from unknown repository into master 2018-01-07 06:11:05 +00:00
Owner

Author: @lunny

As title.

Author: @lunny As title.
Author
Owner

Author: @strk

How about naming the new function GetFormatPatchReader and keep the old signature ?
Also I think it would be worth adding a GetPatchReader to go with the GetPatch one, and test all of them.

Author: @strk How about naming the new function GetFormatPatchReader and keep the old signature ? Also I think it would be worth adding a GetPatchReader to go with the GetPatch one, and test all of them.
Author
Owner

Author: @lunny

@strk GetFormatPatch is unnecessary I think.

Author: @lunny @strk GetFormatPatch is unnecessary I think.
Author
Owner

Author: @strk

It would be for consistency with GetPatch. Consistency in naming is important, IMHO, and you don't want to change API of GetPatch.

Author: @strk It would be for consistency with GetPatch. Consistency in naming is important, IMHO, and you don't want to change API of GetPatch.
Author
Owner

Author: @strk

but ok if you just want to rename to GetFormatPatchReader and not provide GetFormatPatch...

Author: @strk but ok if you just want to rename to GetFormatPatchReader and not provide GetFormatPatch...
Author
Owner

Author: @strk

Why did you not rename the method ?
Note that Macaron wants a ReadSeeker, so the Reader from this changed method is not good to be passed to ServeContent (lacks Seek)

Author: @strk Why did you not rename the method ? Note that Macaron wants a ReadSeeker, so the Reader from this changed method is not good to be passed to ServeContent (lacks Seek)
Author
Owner

Author: @strk

nevermind, fixed via io.Copy as suggested on IRC

Author: @strk nevermind, fixed via io.Copy as suggested on IRC
This repo is archived. You cannot comment on pull requests.
No description provided.