X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/c00fe8afd2ae2e21fca7ad8408e674ae4f300d54..46441bb45628408213088229be193b020f405677:/lib/unison diff --git a/lib/unison b/lib/unison index abe9584..d2a784f 100644 --- a/lib/unison +++ b/lib/unison @@ -15,6 +15,7 @@ # And an example repo using it would look something like: #[music] #unison_test = true +#checkout = unison_checkout music lib = # The name of the directory containing the repo is assumed to @@ -22,10 +23,15 @@ lib = unison_config() { basename "$MR_REPO" } + unison_batch() { + unison -batch $(unison_config) + } + unison_checkout() { + mkdir "$1" && cd "$1" && unison -batch "$1" + } -unison_checkout = unison -batch $(unison_config) -unison_update = unison -batch $(unison_config) -unison_push = unison -batch $(unison_config) +unison_update = unison_batch +unison_push = unison_batch unison_commit = unison $(unison_config) # vim:sw=8:sts=0:ts=8:noet