arxanas / git-branchless

High-velocity, monorepo-scale workflow for Git
Apache License 2.0
3.38k stars 80 forks source link

[1/1] feat(effects): add `with_progress` method to iterators #1234

Closed arxanas closed 5 months ago

arxanas commented 5 months ago

Stack:


feat(effects): add with_progress method to iterators

In situations where we continue a loop, the naive approach of incrementing the iterator progress at the end of the loop won't work as it'll skip the increment. This extension method aims to improve the ergonomics and correctness of that use-case.