emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/vc-git.el,v


From: Dan Nicolaescu
Subject: [Emacs-diffs] Changes to emacs/lisp/vc-git.el,v
Date: Thu, 18 Sep 2008 17:01:45 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Dan Nicolaescu <dann>   08/09/18 17:01:43

Index: vc-git.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/vc-git.el,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -b -r1.71 -r1.72
--- vc-git.el   30 Jul 2008 07:50:26 -0000      1.71
+++ vc-git.el   18 Sep 2008 17:01:43 -0000      1.72
@@ -491,12 +491,13 @@
 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
                   (cond ((string-match "~\\([0-9]\\)$" revision)
                          (1+ (string-to-number (match-string 1 revision))))
                         ((string-match "\\^+$" revision)
                          (1+ (length (match-string 0 revision))))
-                        (t nil)))
+                         (t nil))))
   (beginning-of-line))
 
 (defun vc-git-diff (files &optional rev1 rev2 buffer)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]