]> git.madduck.net Git - code/myrepos.git/commitdiff

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:

* Add a lib file for using unison with mr.
authorJoey Hess <joey@kodama.kitenet.net>
Fri, 26 Oct 2007 08:04:15 +0000 (04:04 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Fri, 26 Oct 2007 08:04:15 +0000 (04:04 -0400)
debian/changelog
lib/unison [new file with mode: 0644]

index 11e15b1af741a141625fb79fbee6037266bad6d7..2c7d823b6c04f2cc822e5e05595e4206c2ef513a 100644 (file)
@@ -1,3 +1,9 @@
+mr (0.10) UNRELEASED; urgency=low
+
+  * Add a lib file for using unison with mr.
+
+ -- Joey Hess <joeyh@debian.org>  Fri, 26 Oct 2007 03:57:51 -0400
+
 mr (0.9) unstable; urgency=low
 
   * Split up actions, so each rcs has its own set of action commands,
diff --git a/lib/unison b/lib/unison
new file mode 100644 (file)
index 0000000..abe9584
--- /dev/null
@@ -0,0 +1,31 @@
+# This allows using unison as a "revison 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
+# containing unison configuration to sync them.
+#
+# By default commit will be interactive; you can set batch mode in the
+# config file to disable this. All other commands use batch mode by
+# default.
+
+# To make mr use this file, add a line like this inside the [DEFAULT]
+# section of your ~/.mrconfig
+#include = cat /usr/share/mr/unison
+
+# And an example repo using it would look something like:
+#[music]
+#unison_test = true
+
+lib =
+       # The name of the directory containing the repo is assumed to
+       # match that of a unison config file.
+       unison_config() {
+               basename "$MR_REPO"
+       }
+
+unison_checkout = unison -batch $(unison_config)
+unison_update   = unison -batch $(unison_config)
+unison_push     = unison -batch $(unison_config)
+unison_commit   = unison $(unison_config)
+
+# vim:sw=8:sts=0:ts=8:noet