shithub: git9

Download patch

ref: c7d5facbff88f2663e2b7e10bb0fff4a7a0d673d
parent: 5577b5b51e56f5d043a9830903b2fb668f8451d1
author: Ori Bernstein <ori@eigenstate.org>
date: Fri May 8 00:48:53 EDT 2020

explicitly exit with success

reaching the end of an rc script leaves $status.

--- a/add
+++ b/add
@@ -45,3 +45,4 @@
 		rm -f $delpath
 	}
 }
+exit ''
\ No newline at end of file
--- a/branch
+++ b/branch
@@ -116,3 +116,4 @@
 }
 
 echo ref: $new > .git/HEAD
+exit ''
\ No newline at end of file
--- a/clone
+++ b/clone
@@ -94,3 +94,4 @@
 	rm -rf $local
 	exit $st
 }
+exit ''
--- a/commit
+++ b/commit
@@ -145,3 +145,4 @@
 	commit
 	update
 } || die 'could not commit:' $status
+exit ''
\ No newline at end of file
--- a/diff
+++ b/diff
@@ -39,3 +39,4 @@
 		f=/dev/null
 	ape/diff -up $orig $f
 }
+exit ''
\ No newline at end of file
--- a/export
+++ b/export
@@ -74,3 +74,4 @@
 		mv /tmp/patchfile $patchdir/`{cat /tmp/patchname}
 	n=`{echo $n + 1 | bc}
 }
+exit ''
\ No newline at end of file
--- a/import
+++ b/import
@@ -98,3 +98,4 @@
 	patches=$*
 for(f in $patches)
 	apply < $f || die $status 
+exit ''
--- a/init
+++ b/init
@@ -48,3 +48,4 @@
 	echo '	remote = origin'
 	echo '	merge = refs/heads/master' 
 }
+exit ''
\ No newline at end of file
--- a/merge
+++ b/merge
@@ -52,3 +52,4 @@
 
 merge /mnt/git/object/$ours /mnt/git/object/$base /mnt/git/object/$theirs
 >[1=2] echo 'merge complete: remember to commit'
+exit ''
--- a/pull
+++ b/pull
@@ -104,3 +104,4 @@
 echo
 echo $remote':' `{git/query $local} '=>' `{git/query $remote}  >[1=2]
 git/branch -n -b $remote $local
+exit ''
\ No newline at end of file
--- a/push
+++ b/push
@@ -65,3 +65,4 @@
 		echo $u(2)^': up to date'
 	}
 }
+exit ''
--- a/revert
+++ b/revert
@@ -27,3 +27,4 @@
 	mkdir -p `{basename -d $f}
 	cp -- $commit/tree/$f $f
 }
+exit ''
--- a/rm
+++ b/rm
@@ -1,3 +1,3 @@
 #!/bin/rc -e
 
-git/add -r $*
+exec git/add -r $*