emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] scratch/add-vdiff 219d765 225/258: vdiff-magit: Simplify stage


From: Justin Burkett
Subject: [elpa] scratch/add-vdiff 219d765 225/258: vdiff-magit: Simplify stage
Date: Wed, 17 May 2017 08:13:58 -0400 (EDT)

branch: scratch/add-vdiff
commit 219d7651d105c86ad928f7c94a7f83457766a232
Author: Justin Burkett <address@hidden>
Commit: Justin Burkett <address@hidden>

    vdiff-magit: Simplify stage
---
 vdiff-magit.el | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/vdiff-magit.el b/vdiff-magit.el
index b1ad04f..5943a9a 100644
--- a/vdiff-magit.el
+++ b/vdiff-magit.el
@@ -226,21 +226,16 @@ FILE has to be relative to the top directory of the 
repository."
          (current-buffer))
        fileBufC
        (lambda (buf-a buf-b buf-c)
-         (when (and (buffer-live-p buf-a)
-                    (buffer-modified-p buf-a))
-           (kill-buffer buf-a))
          (when (and (buffer-live-p buf-b)
                     (buffer-modified-p buf-b))
            (with-current-buffer buf-b
-             (magit-update-index))
-           (kill-buffer buf-b))
+             (magit-update-index)))
          (when (and (buffer-live-p buf-c)
                     (buffer-modified-p buf-c))
            (with-current-buffer buf-c
              (when (y-or-n-p
                     (format "Save file %s? " buffer-file-name))
-               (save-buffer)))
-           (kill-buffer buf-c)))
+               (save-buffer)))))
        t t))))
 
 ;; ;;;###autoload



reply via email to

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