diff options
| author | René Scharfe <l.s.r@web.de> | 2026-03-17 22:40:07 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-03-18 10:39:56 -0700 |
| commit | 1ae7a359ae53e98f153b8fb0dea532d2007a0093 (patch) | |
| tree | 3eae603e4bcd133211d43f56cf3552095842896b /git-gui/lib | |
| parent | ca1db8a0f7dc0dbea892e99f5b37c5fe5861be71 (diff) | |
| download | git-1ae7a359ae53e98f153b8fb0dea532d2007a0093.tar.xz | |
use commit_stack instead of prio_queue in LIFO mode
A prio_queue with a NULL compare function acts as a stack -- the last
element in is the first one out (LIFO). Use an actual commit_stack
instead where possible, as it documents the behavior better, provides
type safety and saves some memory because prio_queue stores an
additional tie-breaking counter per element.
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui/lib')
0 files changed, 0 insertions, 0 deletions
