shithub: git9

Download patch

ref: 65b772ed948f2841733f44eefc1f1f7df413c68a
parent: d03d4c6ef7978417e7f8833577db044375d9feed
author: Ori Bernstein <[email protected]>
date: Thu Nov 14 22:30:18 EST 2019

Let's not clutter up /bin/git: put the util scripts into /sys/lib/git

--- a/add
+++ b/add
@@ -1,6 +1,6 @@
 #!/bin/rc -e
 rfork ne
-. /bin/git/common.rc
+. /sys/lib/git/common.rc
 
 usage='
 	git/add [-r] file ...
--- a/branch
+++ b/branch
@@ -1,6 +1,6 @@
 #!/bin/rc -e
 rfork en
-. /bin/git/common.rc
+. /sys/lib/git/common.rc
 
 usage='
 	git/branch [-cdsu] [-b base] [new]
--- a/clone
+++ b/clone
@@ -1,6 +1,6 @@
 #!/bin/rc -e
 rfork en
-. /bin/git/common.rc
+. /sys/lib/git/common.rc
 
 usage='
 	git/clone remote [local]
--- a/commit
+++ b/commit
@@ -1,6 +1,6 @@
 #!/bin/rc -e
 rfork ne
-. /bin/git/common.rc
+. /sys/lib/git/common.rc
 
 usage='
 	git/commit
--- a/diff
+++ b/diff
@@ -1,6 +1,6 @@
 #!/bin/rc
 rfork ne
-. /bin/git/common.rc
+. /sys/lib/git/common.rc
 
 usage='
 	git/diff [-b branch] [file ...]
--- a/export
+++ b/export
@@ -1,6 +1,6 @@
 #!/bin/rc
 rfork ne
-. /bin/git/common.rc
+. /sys/lib/git/common.rc
 
 usage='
 	git/export [query]
--- a/import
+++ b/import
@@ -1,6 +1,6 @@
 #!/bin/rc
 rfork ne
-. /bin/git/common.rc
+. /sys/lib/git/common.rc
 
 usage='
 	git/import [file ...]
--- a/init
+++ b/init
@@ -1,6 +1,6 @@
 #!/bin/rc -e
 rfork ne
-. /bin/git/common.rc
+. /sys/lib/git/common.rc
 
 usage='
 	git/init [-b] [-u upstream] name
--- a/log
+++ b/log
@@ -1,6 +1,6 @@
 #!/bin/rc -e
 rfork en
-. /bin/git/common.rc
+. /sys/lib/git/common.rc
 
 usage='
 	git/log [-q query] [file ...]
--- a/merge
+++ b/merge
@@ -1,6 +1,6 @@
 #!/bin/rc -e
 rfork ne
-. /bin/git/common.rc
+. /sys/lib/git/common.rc
 
 usage='
 	git/merge theirs
--- a/mkfile
+++ b/mkfile
@@ -15,7 +15,6 @@
 	branch\
 	clone\
 	commit\
-	common.rc\
 	diff\
 	export\
 	import\
@@ -46,6 +45,7 @@
 	for (i in $RC)
 		mk $MKFLAGS $i.rcinstall
 	cp git.1 /sys/man/1/git
+	cp common.rc /sys/lib/git/common.rc
 	mk $MKFLAGS /sys/lib/git/template
 
 uninstall:V:
--- a/pull
+++ b/pull
@@ -1,6 +1,6 @@
 #!/bin/rc -e
 rfork en
-. /bin/git/common.rc
+. /sys/lib/git/common.rc
 
 usage='
 	git/pull [-u upstream] [-b branch]
--- a/push
+++ b/push
@@ -1,6 +1,6 @@
 #!/bin/rc -e
 rfork en
-. /bin/git/common.rc
+. /sys/lib/git/common.rc
 
 usage='
 	git/push [-a] [-u upstream] [-b branch] [-r branch]
--- a/revert
+++ b/revert
@@ -1,6 +1,6 @@
 #!/bin/rc
 rfork e
-. /bin/git/common.rc
+. /sys/lib/git/common.rc
 
 usage='
 	git/revert [-c query] file [...]