org-attach.el: Get attachments from git annex
commit504071894532125b93064c8e67ff6c4a6149ef47
authorErik Hetzner <egh@e6h.org>
Sat, 6 Feb 2016 12:16:52 +0000 (6 13:16 +0100)
committerRasmus <rasmus@gmx.us>
Sat, 6 Feb 2016 12:17:33 +0000 (6 13:17 +0100)
tree2975da0c3b57b60274ab41c3277be44557033dc4
parent06a1fea1095b8ebae74af6d14b50db7956b827c2
org-attach.el: Get attachments from git annex

* org-attach.el (org-attach-use-annex): New function to check if git
  annex should be used.
  (org-attach-annex-get-maybe): New function to get a file from git
  annex if necessary.
  (org-attach-annex-auto-get): New defcustom to determine behavior
  of org-attach-annex-get-maybe.
  (org-attach-open): Automatically get attached files from git annex when
  opening if necessary.
* testing/lisp/test-org-annex.el: New file for testing org-attach. Only
  contains code for testing org-attach with git annex at the moment.
* mk/targets.mk: Fix cleantest target so it can delete git annex repos.
lisp/org-attach.el
mk/targets.mk
testing/lisp/test-org-attach.el [new file with mode: 0644]