changeset 98701:5970e7c70c96

* vc-git.el (vc-git-show-log-entry): Include the revision in the search string.
author Dan Nicolaescu <dann@ics.uci.edu>
date Tue, 14 Oct 2008 07:05:07 +0000
parents c469feff390b
children f8b9555242f1
files lisp/ChangeLog lisp/vc-git.el
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Tue Oct 14 05:53:56 2008 +0000
+++ b/lisp/ChangeLog	Tue Oct 14 07:05:07 2008 +0000
@@ -1,3 +1,8 @@
+2008-10-14  Eric Hanchrow  <offby1@blarg.net>  (tiny change)
+
+	* vc-git.el (vc-git-show-log-entry): Include the revision in the
+	search string.
+
 2008-10-14  Michael Albinus  <michael.albinus@gmx.de>
 
 	* net/tramp.el (tramp-process-one-action): Embed regexp in
--- a/lisp/vc-git.el	Tue Oct 14 05:53:56 2008 +0000
+++ b/lisp/vc-git.el	Tue Oct 14 07:05:07 2008 +0000
@@ -492,7 +492,7 @@
 or BRANCH^ (where \"^\" can be repeated)."
   (goto-char (point-min))
   (when revision
-    (search-forward "\ncommit" nil t
+    (search-forward (format "\ncommit %s" revision) nil t
 		    (cond ((string-match "~\\([0-9]\\)$" revision)
 			   (1+ (string-to-number (match-string 1 revision))))
 			  ((string-match "\\^+$" revision)