Thread (1 message) 1 message, 1 author, 2022-07-14

Re: [PATCH] shortlog: use a stable sort

From: Junio C Hamano <hidden>
Date: 2022-07-14 16:28:19

"Johannes Schindelin via GitGitGadget" [off-list ref]
writes:
When sorting the output of `git shortlog` by count, a list of authors in
alphabetical order is then sorted by contribution count. Obviously, the
idea is to maintain the alphabetical order for items with identical
contribution count.
...
 	if (log->sort_by_number)
-		QSORT(log->list.items, log->list.nr,
+		STABLE_QSORT(log->list.items, log->list.nr,
Makes perfect sense.  Will queue.

Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help