summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-05-29 22:32:57 -0400
committerKyle Meyer <kyle@kyleam.com>2015-05-29 22:32:57 -0400
commit1da884c4e33fbce3e137c4958ceecbfad3bcf7f7 (patch)
tree5cd58b24ea296ddd430e2cff5c9218c2325d88a2
parent1aa655648a501c2d6d80c4416ee13eabe0aae959 (diff)
downloademacs.d-1da884c4e33fbce3e137c4958ceecbfad3bcf7f7.tar.gz
Replace all magit-get-top-dir with magit-toplevel
Should have replaced in bf1bacdf8fd3137172588c17a58336ecfd0ba81f.
-rw-r--r--lisp/init-git.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/init-git.el b/lisp/init-git.el
index da87fa0..7387816 100644
--- a/lisp/init-git.el
+++ b/lisp/init-git.el
@@ -235,7 +235,7 @@ buffer."
(fname (and (or buffer-file-name
(user-error "Buffer not visiting file"))
(file-relative-name buffer-file-name
- (magit-get-top-dir)))))
+ (magit-toplevel)))))
(magit-find-file rev fname)
(unless other-rev (goto-char pos))))
@@ -257,7 +257,7 @@ By default, the path for the file name is relative to the top
directory of the repository. Remove the directory component from
the file name if NO-DIRECTORY is non-nil."
(interactive "P")
- (let* ((default-directory (magit-get-top-dir))
+ (let* ((default-directory (magit-toplevel))
(files (magit-staged-files))
(file (if (= 1 (length files))
(car files)