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.
Make previous PR pass checkdoc and bumped revision.
- Loading branch information
Showing
1 changed file
with
4 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
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: 1.4 | ||
;; Version: 1.5 | ||
;; URL: https://github.com/pidu/git-timemachine | ||
;; Package-Requires: ((cl-lib "0.5")) | ||
;; Keywords: git | ||
|
@@ -98,11 +98,12 @@ | |
:group 'git-timemachine) | ||
|
||
(defun git-timemachine-validate (file) | ||
"Validate that there is a FILE and that it belongs to a git repository. Call with the value of 'buffer-file-name." | ||
(unless file | ||
(error "This buffer is not related to file.")) | ||
(error "This buffer is not related to file")) | ||
(with-temp-buffer | ||
(unless (zerop (call-process "git" nil nil nil "ls-files" "--error-unmatch" file)) | ||
(error "This file is not git tracked.")))) | ||
(error "This file is not git tracked")))) | ||
|
||
;;;###autoload | ||
(defun git-timemachine () | ||
|