diff options
author | Kyle Meyer <kyle@kyleam.com> | 2015-05-23 17:32:57 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2015-05-23 17:32:57 -0400 |
commit | bf1bacdf8fd3137172588c17a58336ecfd0ba81f (patch) | |
tree | a1df4d4f0bf1d1229972d7f7b3d683c3552ca5ac | |
parent | 8f5eab44c4e163bd8f262e632ee1dff72386cbfc (diff) | |
download | emacs.d-bf1bacdf8fd3137172588c17a58336ecfd0ba81f.tar.gz |
Use magit-toplevel instead of magit-get-top-dir
Magit commit 1ff241b719 removed magit-get-top-dir.
-rw-r--r-- | lisp/init-git.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/init-git.el b/lisp/init-git.el index 0e18040..da87fa0 100644 --- a/lisp/init-git.el +++ b/lisp/init-git.el @@ -11,7 +11,7 @@ ;;; Magit (add-to-list 'load-path "~/src/emacs/magit/") -(require 'magit-autoloads) +(require 'magit) (add-to-list 'load-path "~/src/emacs/orgit/") (require 'orgit) @@ -212,7 +212,7 @@ and 'squash!' titles." (interactive (let ((rev (magit-read-branch-or-commit "Revision"))) (list rev (magit-read-file-from-rev rev "File")))) - (let ((default-directory (magit-get-top-dir))) + (magit-with-toplevel (magit-run-git "checkout" rev "--" file))) (defun km/magit-pin-file (&optional other-rev) |