Permalink
Browse files

define magit-single-file-log command and bind it in logging popup

  • Loading branch information...
1 parent c18cd5a commit 2f889dd306aa4aa53254562e7140585cf3f1a246 @sergv sergv committed Nov 28, 2012
Showing with 5 additions and 0 deletions.
  1. +1 −0 magit-key-mode.el
  2. +4 −0 magit.el
View
1 magit-key-mode.el
@@ -56,6 +56,7 @@ command-line).")
("l" "Short" magit-log)
("L" "Long" magit-log-long)
("h" "Reflog" magit-reflog)
+ ("f" "File log" magit-single-file-log)
("rl" "Ranged short" magit-log-ranged)
("rL" "Ranged long" magit-log-long-ranged)
("rh" "Ranged reflog" magit-reflog-ranged))
View
4 magit.el
@@ -5915,6 +5915,10 @@ for the file whose log must be displayed."
#'magit-refresh-file-log-buffer
current-file range 'oneline)))
+(magit-define-command single-file-log (&optional ranged)
+ (interactive)
+ (magit-file-log))
+
(defun magit-show-file-revision ()
"Open a new buffer showing the current file in the revision at point."
(interactive)

0 comments on commit 2f889dd

Please sign in to comment.