# update git fetching logic to new reader/writer API · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/06b44a0afa849556f613fcc5939db99fec38883f)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 06b44a0afa849556f613fcc5939db99fec38883f

Requested commit: 06b44a0afa849556f613fcc5939db99fec38883f

Commit: 06b44a0afa849556f613fcc5939db99fec38883f

Tree: 2ba6b36cc75c0480a7ccdd7ba5ec8344e1d7dee5

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
update git fetching logic to new reader/writer API

- flatten std.crypto.hash.Sha1 and give it a writable interface that
  optimizes splats
- flatten std.hash.crc and give it a writable interface that optimizes
  splats
- remove old writer impls from std.crypto
- add fs.File.Writer.moveToReader
- add fs.File.Writer.seekTo
- add std.io.Reader.Hashed and std.io.Writer.Hashed which are
  passthrough streams. Instead of passing through to null writer, use
  the writable interface implemented directly on hashers which doesn't
  have to account for passing through the data.
- add std.io.BufferedWriter.writeSplatAll

```

## Parents

- [d603121dc355fee44b86a7fdf3666dce6e3ab677](https://git.cafe/gitcafe/zig/commit/d603121dc355fee44b86a7fdf3666dce6e3ab677?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/06b44a0afa849556f613fcc5939db99fec38883f?format=markdown)
