This message was deleted.
# report-bugs
s
This message was deleted.
1
b
I’d expect that teal one at the top to be further down the list, either above or below the pink stack. When I have a lot of branches, it’d be great for the older ones to be consistently at the top.
p
@Jacob Gold
j
the sorting is deterministic, and I believe should be by committer date per list of direct children of a branch, which gets updated on any changes including restack. was 0306 not restacked since the rest of them were?
⚠️ implementation details ahead (just typing out my own thought stream in case anyone find it interesting 🙂 ): it might be slightly off that because the sorting happens when we load the git state into memory at the beginning of the command ah typing this out helped me figure out what the bug might be — we don't reload git state into memory at the beginning of each command, only when we perform a disk cache invalidation. so the sorting only corrects itself when you run direct git commands that modify branches. anyway, i think the fix here is just to do explicit sorting at the actual
gt log
layer instead of relying on the git cache state...
(and also so i can paste screenshots of this thread into the linear task lol). anyway, thanks for reporting!
b
haha, I love hearing implementation details
And I think you might be right. As for your question, I did restack everything, probably at the same time.
I just ran
gt rs --force --restack
and here’s where I landed:
Thanks @Jacob Gold