]> git.eshelyaron.com Git - emacs.git/commitdiff
(vc-version-diff): diff-switches can be a list.
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 8 Oct 2000 19:12:52 +0000 (19:12 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 8 Oct 2000 19:12:52 +0000 (19:12 +0000)
lisp/vc.el

index 9b69f3be6dcb6c14f53b307e153b64b0be140fc8..ef89bc8572802cdd9053ff7d52aac01812dcb086 100644 (file)
@@ -5,7 +5,7 @@
 ;; Author:     FSF (see below for full credits)
 ;; Maintainer: Andre Spiegel <spiegel@gnu.org>
 
-;; $Id: vc.el,v 1.277 2000/10/04 09:48:37 spiegel Exp $
+;; $Id: vc.el,v 1.278 2000/10/05 22:55:17 monnier Exp $
 
 ;; This file is part of GNU Emacs.
 
@@ -1531,11 +1531,16 @@ files in or below it."
     (if (string-equal rel2 "")
        (setq rel2 nil))
     (let ((file-rel1 (vc-version-backup-file file rel1))
-         (file-rel2 (if (not rel2) 
-                        file 
+         (file-rel2 (if (not rel2)
+                        file
                       (vc-version-backup-file file rel2))))
       (if (and file-rel1 file-rel2)
-         (vc-do-command t 1 "diff" nil diff-switches file-rel1 file-rel2)
+         (apply 'vc-do-command t 1 "diff" nil
+                (append (if (listp diff-switches)
+                            diff-switches
+                          (list diff-switches))
+                        (list (file-relative-name file-rel1)
+                              (file-relative-name file-rel2))))
        (cd (file-name-directory file))
        (vc-call diff file rel1 rel2))))
   (if (and (zerop (buffer-size))