Merge pull request #283 from stsquad/history-aware-git-apply

* mu4e-actions.el: make git apply patch history aware
This commit is contained in:
Dirk-Jan C. Binnema
2013-10-07 20:51:17 -07:00

View File

@ -170,7 +170,10 @@ store your org-contacts."
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun mu4e-action-git-apply-patch (msg) (defun mu4e-action-git-apply-patch (msg)
"Apply the git [patch] message." "Apply the git [patch] message."
(let ((path (read-directory-name "Target directory: " nil "~/" t) )) (let ((path (ido-read-directory-name "Target directory: "
(car ido-work-directory-list)
"~/" t)))
(add-to-list 'ido-work-directory-list path)
(shell-command (shell-command
(format "cd %s; git apply %s" (format "cd %s; git apply %s"
path path