# HG changeset patch # User Dan Nicolaescu # Date 1223967907 0 # Node ID 5970e7c70c96dfa80ef8a2787cb8c84d21c462eb # Parent c469feff390b3c29df93a8f07605952db39721ce * vc-git.el (vc-git-show-log-entry): Include the revision in the search string. diff -r c469feff390b -r 5970e7c70c96 lisp/ChangeLog --- 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 (tiny change) + + * vc-git.el (vc-git-show-log-entry): Include the revision in the + search string. + 2008-10-14 Michael Albinus * net/tramp.el (tramp-process-one-action): Embed regexp in diff -r c469feff390b -r 5970e7c70c96 lisp/vc-git.el --- 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)