]>
git.madduck.net Git - code/myrepos.git/blobdiff - lib/unison
madduck's git repository
Every one of the projects in this repository is available at the canonical
URL git://git.madduck.net/madduck/pub/<projectpath> — see
each project's metadata for the exact URL.
All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@ git. madduck. net .
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
SSH access, as well as push access can be individually
arranged .
If you use my repositories frequently, consider adding the following
snippet to ~/.gitconfig and using the third clone URL listed for each
project:
[url "git://git.madduck.net/madduck/"]
insteadOf = madduck:
-# This allows using unison as a "revis on control system" with mr.
+# This allows using unison as a "versi on control system" with mr.
#
# You need to configure unison by setting up files in ~/.unison named
# the same as the basenames of the directories you want to sync, and
#
# You need to configure unison by setting up files in ~/.unison named
# the same as the basenames of the directories you want to sync, and
# And an example repo using it would look something like:
#[music]
#unison_test = true
# 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
lib =
# The name of the directory containing the repo is assumed to
unison_config() {
basename "$MR_REPO"
}
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
unison_commit = unison $(unison_config)
# vim:sw=8:sts=0:ts=8:noet