Files
oasis-linux-mirror/scripts/commit.rc
Michael Forney b63a2d5a69 Add commit script to generate commit history
This will make it easier for users to merge changes into their trees.
2016-04-23 16:51:19 -07:00

19 lines
314 B
Bash

#!/bin/rc
flag e +
repo=$1
branch=$2
tag=$3
fn checkstatus {}
cd $repo
if([ -f refs/heads/$branch ]) parent=(-p $branch)
if not parent=()
ifs=() { message='oasis built by '`{id -un | head -c -1} }
commit=`{echo $message | git commit-tree $tag $parent} ; checkstatus
git update-ref refs/heads/$branch $commit