Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2021-06-24 15:16:13 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2021-06-28 10:02:14 +0300
commit39119388e82bccaf1de432a7a23b989f311d6b13 (patch)
treee48cb2a2c1612b4c6aa4a7d560f76786e6f4bc96 /_support
parent6c99d927a1c7a1cfc07f97cbb60059c2dbc8e022 (diff)
gitpipe: Implement iterator for catfile object step
The pipeline steps are currently easy to misuse: the structures returned on the channel all have an `Err` field, which MUST be checked by the caller. It's easy enough to forget if one isn't prepared to do so. Refactor the catfile object step to instead return a CatfileObjectIterator. This iterator follows the typical Go idiom of iterators with `Next()`, `Err()` and `Result()` functions. Given that the iterator is an interface, this also makes it easily possible for callers to replace it with their own adapter.
Diffstat (limited to '_support')
0 files changed, 0 insertions, 0 deletions