aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorThien-Thi Nguyen2007-11-25 00:42:41 +0000
committerThien-Thi Nguyen2007-11-25 00:42:41 +0000
commit0bcc6163fe83d56aef78034841e8938504d487da (patch)
tree748aae031dc12ccd8160eac6fa3e6c9836af444f /lisp
parentcb6c237a6f3444bebe104f59ae6502fad7dca8da (diff)
downloademacs-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.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/vc-git.el2
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
282007-11-24 Michael Albinus <michael.albinus@gmx.de> 312007-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)))