[1]: https://github.com/git/git/blob/v2.11.0/Documentation/RelNot...
[1]: https://github.com/git/git/blob/v2.11.0/Documentation/RelNot...
> The code that we have used for the past 10+ years to cycle 4-element ring buffers turns out to be not quite portable in theoretical world.
It deals with wrapping an integer index around after incrementing it, the old code just used ++index and a bitmask, the new code uses + 1 and modulo.
I have problems understanding this right now, in my world ++index for an int really shouldn't trigger overflow when counting to at most 4, on any (sem-)realistic environment?
Feeling extra dense, must have more coffee.
So the key difference between the old and the new is that the counter resets to zero every fourth call.
- Changing the default for “core.abbrev”?
- Prepare the sequencer for the upcoming rebase -i patches
(I am a Git Rev News editor.)