shithub: front

Download patch

ref: a3ee5e0888d1460a3365a5d94764344269cb2ad3
parent: c0e343a40ce825ff4ee88a766152fd6a5f444d14
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)
--