forked from purcell/git-timemachine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added git-timemachine-toggle per request #27.
And bumped version.
- Loading branch information
Showing
2 changed files
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
;; Copyright (C) 2014 Peter Stiernström | ||
|
||
;; Author: Peter Stiernström <[email protected]> | ||
;; Version: 2.1 | ||
;; Version: 2.2 | ||
;; URL: https://github.com/pidu/git-timemachine | ||
;; Keywords: git | ||
|
||
|
@@ -161,6 +161,14 @@ Call with the value of 'buffer-file-name." | |
(unless (vc-git-registered file) | ||
(error "This file is not git tracked"))) | ||
|
||
;;;###autoload | ||
(defun git-timemachine-toggle () | ||
"Toggle git timemachine mode" | ||
(interactive) | ||
(if (bound-and-true-p git-timemachine-mode) | ||
(git-timemachine-quit) | ||
(git-timemachine))) | ||
|
||
;;;###autoload | ||
(defun git-timemachine () | ||
"Enable git timemachine for file of current buffer." | ||
|