about summary refs log tree commit diff
path: root/third_party/git/t/t4256-am-format-flowed.sh
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2023-08-28T20·25+0300
committertazjin <tazjin@tvl.su>2023-08-29T08·22+0000
commitd6bce3f83d2c1052c38ecba1445bbc10a9f03123 (patch)
tree35ff39dbfd54984d487671e4b7a97d10c746a6cc /third_party/git/t/t4256-am-format-flowed.sh
parent0a7a9e96ab0419439b1efc57b50091ae3507f005 (diff)
refactor(tazjin/emacs): refactor LRU workspace list to use ring.el r/6533
This built-in emacs library actually provides a data structure that
can work as an LRU list through the existing helper function to move
an element to the front of the ring if it already exists.

As a result, the code for workspace history moving becomes a lot less
brittle and complicated than it was before. No more carefully figuring
out when to modify state, just push it in the ring unless it's being
rotated already.

Change-Id: If354e0618fc5a6d7333776468eec077596cfe9df
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9162
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Diffstat (limited to 'third_party/git/t/t4256-am-format-flowed.sh')
0 files changed, 0 insertions, 0 deletions