shithub: git9

ref: 7e4b4a3dcf713b5ae217b23b25bb4d0d5a9a7e6d
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
}