]> git.madduck.net Git - code/myrepos.git/blob - lib/git-annex

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:

bootstrap: add support to stdin
[code/myrepos.git] / lib / git-annex
1 # A handler for git-annex clones.
2 #
3 # To make mr use this file, add a line like this inside the [DEFAULT]
4 # section of your ~/.mrconfig
5 #include = cat /usr/share/mr/git-annex
6 #
7 # Do note that this presumes that you have your preferred/required content
8 # settings configured as you want them, because otherwise *all* annexed data
9 # will be fetched on update/commit/push.
10 #
11 # An example usage of this would look e.g.
12 #
13 # [tunes]
14 # checkout =
15 #       git clone git://example.org/my_tunes $MR_REPO
16 #       cd $MR_REPO
17 #       git annex init
18 #       git_annex_sync
19
20 lib = git_annex_sync() { git annex --quiet sync --content; }
21
22 git_test = cd ${MR_REPO} && test -d .git && ! git annex wanted . >/dev/null 2>&1
23 git_annex_test = cd ${MR_REPO} && test -d .git && git annex wanted . >/dev/null 2>&1
24 git_annex_fetch = git annex --quiet fetch
25 git_annex_update = git_annex_sync
26 git_annex_status = git annex --quiet status
27 git_annex_commit = git commit -a "$@" && git_annex_sync
28 git_annex_record = git commit -a "$@"
29 git_annex_push = git_annex_sync
30 git_annex_log = git log "$@"
31 git_annex_diff = git diff "$@"