aboutsummaryrefslogtreecommitdiff
path: root/lisp/magit-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/magit-mode.el')
-rw-r--r--lisp/magit-mode.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/magit-mode.el b/lisp/magit-mode.el
index fa82632..00ee776 100644
--- a/lisp/magit-mode.el
+++ b/lisp/magit-mode.el
@@ -625,6 +625,7 @@ In an indirect buffer get the value for its base buffer."
(defun magit-buffer-revision ()
"Return `magit-buffer-revision' or if that is nil \"{worktree}\".
If not visiting a blob or file, or the file isn't being tracked,
+return nil. If visiting a blob but `magit-buffer-revision' is nil,
return nil."
(or magit-buffer-revision
(and buffer-file-name