git: 9front

Download patch

ref: dd33c3620e3aed429b6bc52288eb9b8be68c9ca3
parent: abb3ca754c72f680f853d484409032d17017cde5
author: mia soweli <mia@soweli.net>
date: Wed May 28 11:46:42 EDT 2025

git/branch: sort output with -a

this just looks a bit neater.

--- a/sys/src/cmd/git/branch
+++ b/sys/src/cmd/git/branch
@@ -16,7 +16,7 @@
 	if(~ $#listall 0)
 		awk '$1=="branch"{print $2}' < $gitfs/ctl
 	if not
-		cd .git/refs/ && walk -f heads remotes
+		cd .git/refs/ && walk -f heads remotes | sort
 	exit
 }
 if(! ~ $#* 1)
--