ref: 92eaddb3cdb3bd9921d9178b0d21ecc0771d76d1
parent: a08453bf28d8178919b62d01b73e56c209f5b4d1
author: kvik <kvik@a-b.xyz>
date: Thu Nov 14 22:05:06 EST 2019
Move $nl into common.rc; update all scripts.
--- a/branch
+++ b/branch
@@ -15,8 +15,6 @@
}
git/fs
-nl='
-'
stay=()
create=()
delete=()
--- a/clone
+++ b/clone
@@ -6,9 +6,6 @@
git/clone remote [local]
'
-nl='
-'
-
remote=$1
local=$2
--- a/commit
+++ b/commit
@@ -6,9 +6,6 @@
git/commit
'
-nl='
-'
-
fn whoami{
name=`{git/conf user.name}
email=`{git/conf user.email}
--- a/common.rc
+++ b/common.rc
@@ -1,3 +1,6 @@
+nl='
+'
+
fn usage{
>[2=1] echo -n 'usage:' $usage
exit 'usage'
--- a/export
+++ b/export
@@ -6,8 +6,6 @@
git/export [query]
'
-nl='
-'
if(! cd `{git/conf -r})
exit 'not in git repository'
git/fs
--- a/import
+++ b/import
@@ -6,8 +6,6 @@
git/import [file ...]
'
-nl='
-'
if(! cd `{git/conf -r})
exit 'not in git repository'
--- a/log
+++ b/log
@@ -6,9 +6,6 @@
git/log [-q query] [file ...]
'
-nl='
-'
-
base=/mnt/git/object/
git/fs
branch=`{git/branch}
--- a/pull
+++ b/pull
@@ -10,9 +10,6 @@
-u pull from "upstream" (default "origin")
'
-nl='
-'
-
fn update{
branch=$1
upstream=$2
--- a/push
+++ b/push
@@ -10,9 +10,6 @@
-u push to remote "upstream" (default: origin)
'
-nl='
-'
-
if(! cd `{git/conf -r})
exit 'not in git repository'
--- a/revert
+++ b/revert
@@ -8,8 +8,6 @@
'
commit=/mnt/git/HEAD
-nl='
-'
pfx=`{pwd}
while(~ $1 -* && ! ~ $1 --){
switch($1){