From: Joey Hess Date: Mon, 7 Apr 2014 21:59:37 +0000 (-0400) Subject: Added lib/git-annex. Thanks, martin f krafft. Closes: #743882 X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/18a5c6c0242c7ca6ca07ea47cb33bbf47ce8e464?ds=inline Added lib/git-annex. Thanks, martin f krafft. Closes: #743882 --- diff --git a/debian/changelog b/debian/changelog index e978bef..e5ae7bb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +myrepos (1.20140228) UNRELEASED; urgency=medium + + * Added lib/git-annex. Thanks, martin f krafft. + Closes: #743882 + + -- Joey Hess Mon, 07 Apr 2014 17:58:58 -0400 + myrepos (1.20140227) unstable; urgency=medium * Avoid using man -l, relying on both versions of man for linux working diff --git a/lib/git-annex b/lib/git-annex new file mode 100644 index 0000000..8d91d01 --- /dev/null +++ b/lib/git-annex @@ -0,0 +1,31 @@ +# A handler for git-annex clones. +# +# To make mr use this file, add a line like this inside the [DEFAULT] +# section of your ~/.mrconfig +#include = cat /usr/share/mr/git-annex +# +# Do note that this presumes that you have your preferred/required content +# settings configured as you want them, because otherwise *all* annexed data +# will be fetched on update/commit/push. +# +# An example usage of this would look e.g. +# +# [tunes] +# checkout = +# git clone git://example.org/my_tunes $MR_REPO +# cd $MR_REPO +# git annex init +# git_annex_sync + +lib = git_annex_sync() { git annex --quiet sync --content; } + +git_test = cd ${MR_REPO} && test -d .git && ! git annex wanted . >/dev/null 2>&1 +git_annex_test = cd ${MR_REPO} && test -d .git && git annex wanted . >/dev/null 2>&1 +git_annex_fetch = git annex --quiet fetch +git_annex_update = git_annex_sync +git_annex_status = git annex --quiet status +git_annex_commit = git commit -a "$@" && git_annex_sync +git_annex_record = git commit -a "$@" +git_annex_push = git_annex_sync +git_annex_log = git log "$@" +git_annex_diff = git diff "$@"