speed up 'got histedit -l' and 'got rebase -l'
commitfd3a2fe6d4ac59847dc2b41f799aff0170600728
authorStefan Sperling <stsp@stsp.name>
Sun, 10 Oct 2021 19:26:26 +0000 (10 19:26 +0000)
committerThomas Adam <thomas@xteddy.org>
Tue, 12 Oct 2021 20:02:46 +0000 (12 21:02 +0100)
tree4505738fe484e1da0262dcbfd2658db9af211a86
parent2777a00400ba964b25ac62b33acdd6677af6ae80
speed up 'got histedit -l' and 'got rebase -l'

Cache commit timestamps in struct got_reference in case we are sorting
references by commit timestamp. This avoids opening and closing commits
every time we compare two references with each other.

ok thomas.adam
lib/reference.c