]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tools/git-grouped-log: sort output
authorKarel Zak <kzak@redhat.com>
Thu, 6 Mar 2025 10:05:55 +0000 (11:05 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 6 Mar 2025 11:13:28 +0000 (12:13 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit 0cd3a9030d9ad611ca7773280c55b9e9d2ccceed)

tools/git-grouped-log

index 78a27810bcf61e5d26cb51709a06d1fa5767bd2d..949143f9a8dacce21f3f3dabbc5eb4d1b42bca14 100755 (executable)
@@ -89,7 +89,7 @@ while IFS='|' read -r subj author; do
 done < <(git log --no-merges --pretty=format:'%s|%an' "$range" --)
 
 misc=""
-for key in "${!commits[@]}"; do
+for key in $(printf "%s\n" "${!commits[@]}" | sort); do
     if [[ "${subsystems[$key]}" == "Misc" ]]; then
         misc="${subsystems[$key]}:\n${commits[$key]}"
     else