shithub: git9

ref: e1e84b5214aac5d38263f5c8bfc4d88f698d68d6
dir: /common.rc/

View raw version
nl='
'

fn die{
	>[1=2] echo $0: $*
	exit $"*
}

fn usage{
	>[1=2] echo -n 'usage:' $usage
	exit 'usage'
}

fn gitup{
	gitroot=`{git/conf -r >[2]/dev/null}
	if(~ $#gitroot 0)
		die 'not a git repository'
	cd $gitroot
	git/fs
}