]> Pileus Git - ~andy/git/commitdiff
git.el: Pass an explicit argument to enable smerge-mode.
authorAlexandre Julliard <julliard@winehq.org>
Tue, 24 Jul 2007 10:02:28 +0000 (12:02 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 25 Jul 2007 07:06:38 +0000 (00:06 -0700)
Without argument the mode is toggled, which would do the wrong thing
if the file was already open.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/emacs/git.el

index b92bbe8728aa9c0e0221ad3bcb549e3dd0b0d6c8..53dd70326079761cbb70dab3a68bdcb4b78f7976 100644 (file)
@@ -1058,7 +1058,7 @@ Return the list of files that haven't been handled."
   (let ((info (ewoc-data (ewoc-locate git-status))))
     (find-file (git-fileinfo->name info))
     (when (eq 'unmerged (git-fileinfo->state info))
-      (smerge-mode))))
+      (smerge-mode 1))))
 
 (defun git-find-file-other-window ()
   "Visit the current file in its own buffer in another window."