diff options
author | Kyle Meyer <kyle@kyleam.com> | 2019-09-08 11:41:53 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2019-09-08 11:41:53 -0400 |
commit | 8919181c127089c4f1aa2f1d1470d4317ad1ebb2 (patch) | |
tree | ff3010c77b8fdeb895c2bd2483b546f5a6054a4e | |
parent | 930a1bcfc52b6897ca9bfaf4e2c0f6cf2c248172 (diff) | |
download | org-mode-8919181c127089c4f1aa2f1d1470d4317ad1ebb2.tar.gz |
org-attach-git: Silence byte-compiler
* lisp/org-attach-git.el (org-attach-git-commit): Rename argument to
silence byte-compiler.
-rw-r--r-- | lisp/org-attach-git.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/org-attach-git.el b/lisp/org-attach-git.el index 1dbc2b7..cafead6 100644 --- a/lisp/org-attach-git.el +++ b/lisp/org-attach-git.el @@ -80,12 +80,12 @@ Signals an error if the file content is not available and it was not retrieved." (message "Running git annex get \"%s\"." path-relative) (call-process "git" nil nil nil "annex" "get" path-relative))))) -(defun org-attach-git-commit (&optional attach-dir) +(defun org-attach-git-commit (&optional _) "Commit changes to git if `org-attach-id-dir' is properly initialized. This checks for the existence of a \".git\" directory in that directory. -Takes one optional argument ATTACH-DIR for the sake of being -compatible with hook `org-attach-after-change-hook'." +Takes an unused optional argument for the sake of being compatible +with hook `org-attach-after-change-hook'." (let* ((dir (expand-file-name org-attach-id-dir)) (git-dir (vc-git-root dir)) (use-annex (org-attach-git-use-annex)) |