shithub: rc

Download patch

ref: 70688168ffb7325916c46c3981b4e49fa38945cf
parent: feb49e4b9e15ad4c33ad76773dd8fdf843958618
author: qwx <qwx@sciops.net>
date: Wed Mar 9 12:14:39 EST 2022

gw: git/status-like

--- /dev/null
+++ b/bin/gw
@@ -1,0 +1,9 @@
+#!/bin/rc
+rfork n
+while(! walk -dn1,1 | grep '\.git$' >/dev/null && ! ~ `{pwd} /)
+	cd ..
+if(~ `{pwd} /){
+	echo no git to hand >[1=2]
+	exit
+}
+git/fs && git/walk -fMAR