summaryrefslogtreecommitdiff
path: root/lisp/vc-git.el
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2008-10-14 07:05:07 +0000
committerDan Nicolaescu <dann@ics.uci.edu>2008-10-14 07:05:07 +0000
commit07ebab66581c7ce586d976ffffc9a429540df1ab (patch)
treef85bec2b4fecc04216f460a04cf33c4eef901f5e /lisp/vc-git.el
parent95d610cb981ef34896c67f5f07ccb2cff698693c (diff)
downloademacs-07ebab66581c7ce586d976ffffc9a429540df1ab.tar.gz
* vc-git.el (vc-git-show-log-entry): Include the revision in the
search string.
Diffstat (limited to 'lisp/vc-git.el')
-rw-r--r--lisp/vc-git.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/vc-git.el b/lisp/vc-git.el
index 90d8ee1289a..aa4b1bb6f16 100644
--- a/lisp/vc-git.el
+++ b/lisp/vc-git.el
@@ -492,7 +492,7 @@ REVISION may have the form BRANCH, BRANCH~N,
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)