[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] scratch/add-vdiff e567468 221/258: vdiff-magit: Port show-working
From: |
Justin Burkett |
Subject: |
[elpa] scratch/add-vdiff e567468 221/258: vdiff-magit: Port show-working-tree |
Date: |
Wed, 17 May 2017 08:13:57 -0400 (EDT) |
branch: scratch/add-vdiff
commit e5674689702dc6c72fb2b3e56b89850a9e90a81c
Author: Justin Burkett <address@hidden>
Commit: Justin Burkett <address@hidden>
vdiff-magit: Port show-working-tree
---
vdiff-magit.el | 40 ++++++++++++++++------------------------
1 file changed, 16 insertions(+), 24 deletions(-)
diff --git a/vdiff-magit.el b/vdiff-magit.el
index 88f562b..06026b7 100644
--- a/vdiff-magit.el
+++ b/vdiff-magit.el
@@ -106,7 +106,7 @@ tree at the time of stashing."
;; (?s "Stage (vdiff)" vdiff-magit-stage)
;; ;; (?i "Show staged" magit-ediff-show-staged)
;; ;; (?m "Resolve" vdiff-magit-resolve)
-;; ;; (?w "Show worktree" magit-ediff-show-working-tree)
+;; ;; (?w "Show worktree" vdiff-magit-show-working-tree)
;; ;; (?r "Diff range" vdiff-magit-compare)
;; ;; (?c "Show commit" magit-ediff-show-commit) nil
;; ;; (?z "Show stash" magit-ediff-show-stash)
@@ -394,29 +394,21 @@ FILE must be relative to the top directory of the
repository."
nil t t))))
;; ;;;###autoload
-;; (defun magit-ediff-show-working-tree (file)
-;; "Show changes between HEAD and working tree using Ediff.
-;; FILE must be relative to the top directory of the repository."
-;; (interactive
-;; (list (magit-read-file-choice "Show changes in file"
-;; (magit-changed-files "HEAD")
-;; "No changed files")))
-;; (magit-with-toplevel
-;; (let ((conf (current-window-configuration))
-;; (bufA (magit-get-revision-buffer "HEAD" file))
-;; (bufB (get-file-buffer file)))
-;; (ediff-buffers
-;; (or bufA (magit-find-file-noselect "HEAD" file))
-;; (or bufB (find-file-noselect file))
-;; `((lambda ()
-;; (setq-local
-;; ediff-quit-hook
-;; (lambda ()
-;; ,@(unless bufA '((ediff-kill-buffer-carefully
ediff-buffer-A)))
-;; ,@(unless bufB '((ediff-kill-buffer-carefully
ediff-buffer-B)))
-;; (let ((magit-ediff-previous-winconf ,conf))
-;; (run-hooks 'magit-ediff-quit-hook))))))
-;; 'ediff-buffers))))
+(defun vdiff-magit-show-working-tree (file)
+ "Show changes between HEAD and working tree using vdiff.
+FILE must be relative to the top directory of the repository."
+ (interactive
+ (list (magit-read-file-choice "Show changes in file"
+ (magit-changed-files "HEAD")
+ "No changed files")))
+ (magit-with-toplevel
+ (let ((conf (current-window-configuration))
+ (bufA (magit-get-revision-buffer "HEAD" file))
+ (bufB (get-file-buffer file)))
+ (vdiff-buffers
+ (or bufA (magit-find-file-noselect "HEAD" file))
+ (or bufB (find-file-noselect file))
+ nil t t))))
;; ;;;###autoload
(defun vdiff-magit-show-commit (commit)
- [elpa] scratch/add-vdiff f5fdcaa 241/258: vdiff-magit: Simplify exit from stage, (continued)
- [elpa] scratch/add-vdiff f5fdcaa 241/258: vdiff-magit: Simplify exit from stage, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff e8d3d26 236/258: vdiff-magit: Try to switch resolve functions gracefully, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 7c87360 244/258: vdiff: Add vdiff-current-file, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 8b32329 245/258: vdiff: Filter out killed buffers better, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 8aa5c45 250/258: vdiff-magit: Fix paren, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 466b852 173/258: Fix subtraction overlay addition, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff f3b6cec 179/258: Center on start, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 667a7e4 144/258: Generalize data structures to prepare for diff3, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 059d288 208/258: Update gitignore, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff cfad650 207/258: Provide missing function for emacs-nox users, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff e567468 221/258: vdiff-magit: Port show-working-tree,
Justin Burkett <=
- [elpa] scratch/add-vdiff 30b0f9c 213/258: Add vdiff-magit.el with two functions, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 64430c3 215/258: Cleanup merge, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 19f4616 217/258: vdiff-magit: Port compare and show-commit, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff a81d62a 240/258: README: Update recent changes, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 9be4fe3 066/258: Update install instructions in README, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff eda4b1b 204/258: Force update of window-start in manual calls to scroll func, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 7d60015 201/258: Add some doctrings, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 3037be6 222/258: vdiff-magit: Cleanup references in dwim, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 615e7bd 228/258: vdiff-magit: Fix killing of buffers in stage, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff a040a4b 246/258: vdiff: Add vdiff-merge-conflict, Justin Burkett, 2017/05/17