diff options
| author | Thien-Thi Nguyen | 2007-11-25 00:42:41 +0000 |
|---|---|---|
| committer | Thien-Thi Nguyen | 2007-11-25 00:42:41 +0000 |
| commit | 0bcc6163fe83d56aef78034841e8938504d487da (patch) | |
| tree | 748aae031dc12ccd8160eac6fa3e6c9836af444f | |
| parent | cb6c237a6f3444bebe104f59ae6502fad7dca8da (diff) | |
| download | emacs-0bcc6163fe83d56aef78034841e8938504d487da.tar.gz emacs-0bcc6163fe83d56aef78034841e8938504d487da.zip | |
(vc-git-annotate-time): Handle optional field FILENAME.
Also, match one space at end of annotation text, after last paren.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/vc-git.el | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0873acd70a2..997cc9d5ec4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -25,6 +25,9 @@ | |||
| 25 | (vc-annotate-display-autoscale) | 25 | (vc-annotate-display-autoscale) |
| 26 | (vc-annotate-display-difference): Use it. | 26 | (vc-annotate-display-difference): Use it. |
| 27 | 27 | ||
| 28 | * vc-git.el (vc-git-annotate-time): Handle optional field FILENAME. | ||
| 29 | Also, match one space at end of annotation text, after last paren. | ||
| 30 | |||
| 28 | 2007-11-24 Michael Albinus <michael.albinus@gmx.de> | 31 | 2007-11-24 Michael Albinus <michael.albinus@gmx.de> |
| 29 | 32 | ||
| 30 | * ido.el (ido-file-name-all-completions-1): Check for fboundp of | 33 | * ido.el (ido-file-name-all-completions-1): Check for fboundp of |
diff --git a/lisp/vc-git.el b/lisp/vc-git.el index 5652f386f7f..1d0297209b5 100644 --- a/lisp/vc-git.el +++ b/lisp/vc-git.el | |||
| @@ -359,7 +359,7 @@ or BRANCH^ (where \"^\" can be repeated)." | |||
| 359 | (vc-git-command buf 0 name "blame" (if rev (concat "-r" rev))))) | 359 | (vc-git-command buf 0 name "blame" (if rev (concat "-r" rev))))) |
| 360 | 360 | ||
| 361 | (defun vc-git-annotate-time () | 361 | (defun vc-git-annotate-time () |
| 362 | (and (re-search-forward "[0-9a-f]+ (.* \\([0-9]+\\)-\\([0-9]+\\)-\\([0-9]+\\) \\([0-9]+\\):\\([0-9]+\\):\\([0-9]+\\) \\([-+0-9]+\\) +[0-9]+)" nil t) | 362 | (and (re-search-forward "[0-9a-f]+[^()]+(.* \\([0-9]+\\)-\\([0-9]+\\)-\\([0-9]+\\) \\([0-9]+\\):\\([0-9]+\\):\\([0-9]+\\) \\([-+0-9]+\\) +[0-9]+) " nil t) |
| 363 | (vc-annotate-convert-time | 363 | (vc-annotate-convert-time |
| 364 | (apply #'encode-time (mapcar (lambda (match) | 364 | (apply #'encode-time (mapcar (lambda (match) |
| 365 | (string-to-number (match-string match))) | 365 | (string-to-number (match-string match))) |