[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ssh-deploy 009e9f8 113/133: Added mode-line status for
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ssh-deploy 009e9f8 113/133: Added mode-line status for checking file difference |
Date: |
Sat, 27 Mar 2021 14:48:55 -0400 (EDT) |
branch: externals/ssh-deploy
commit 009e9f81c8fc199e77815928bc8915643b019b32
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>
Added mode-line status for checking file difference
---
ssh-deploy.el | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/ssh-deploy.el b/ssh-deploy.el
index 832cb06..67c8a06 100644
--- a/ssh-deploy.el
+++ b/ssh-deploy.el
@@ -5,8 +5,8 @@
;; Author: Christian Johansson <christian@cvj.se>
;; Maintainer: Christian Johansson <christian@cvj.se>
;; Created: 5 Jul 2016
-;; Modified: 2 May 2019
-;; Version: 3.1.3
+;; Modified: 3 May 2019
+;; Version: 3.1.4
;; Keywords: tools, convenience
;; URL: https://github.com/cjohansson/emacs-ssh-deploy
@@ -274,6 +274,9 @@
(defconst ssh-deploy--status-detecting-remote-changes 5
"The mode-line status for detecting remote changes.")
+(defconst ssh-deploy--status-file-difference 6
+ "The mode-line status for checking file difference.")
+
(defconst ssh-deploy--status-undefined 10
"The mode-line undefined status.")
@@ -379,6 +382,9 @@
(setq status-text "mv.."))
((= status ssh-deploy--status-detecting-remote-changes)
+ (setq status-text "chgs.."))
+
+ ((= status ssh-deploy--status-file-difference)
(setq status-text "diff.."))
((and ssh-deploy-root-local ssh-deploy-root-remote)
@@ -710,16 +716,19 @@
(message "Comparing file '%s' to '%s'.." file-a file-b)
(let ((async (or async ssh-deploy-async))
(async-with-threads (or async-with-threads
ssh-deploy-async-with-threads)))
+ (ssh-deploy--mode-line-set-status-and-update
ssh-deploy--status-file-difference file-a)
(if (> async 0)
(ssh-deploy--async-process
(lambda() (ssh-deploy--diff-files file-a file-b))
(lambda(result)
+ (ssh-deploy--mode-line-set-status-and-update
ssh-deploy--status-idle (nth 1 result))
(if (nth 0 result)
(message "File '%s' and '%s' have identical contents.
(asynchronously)" (nth 1 result) (nth 2 result))
(message "File '%s' and '%s' does not have identical contents,
launching ediff.. (asynchronously)" file-a file-b)
(ediff file-a file-b)))
async-with-threads)
(let ((result (ssh-deploy--diff-files file-a file-b)))
+ (ssh-deploy--mode-line-set-status-and-update ssh-deploy--status-idle
(nth 1 result))
(if (nth 0 result)
(message "File '%s' and '%s' have identical contents.
(synchronously)" (nth 1 result) (nth 2 result))
(message "File '%s' and '%s' does not have identical contents,
launching ediff.. (synchronously)" file-a file-b)
- [elpa] externals/ssh-deploy 9c73fef 110/133: Added support for asynchronous file difference check, (continued)
- [elpa] externals/ssh-deploy 9c73fef 110/133: Added support for asynchronous file difference check, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 045e463 095/133: Trying emacs version manager in travis, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 438c1b4 107/133: Do not allow failures on emacs snapshot, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 24fec85 096/133: Added Travis build status to README, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 316395c 089/133: Updated version and date, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy f462007 105/133: More work on directory difference unit test, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 2f6a36e 101/133: Improved instructions for hydra and use-package, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 567e1d5 120/133: Work on feature to automatically update revisions, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 2c43901 112/133: Using ssh-deploy--diff-files instead of directly ediff-same-file-contents, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy aa93c35 123/133: Concatenation of remote file now done properly for directory diff, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 009e9f8 113/133: Added mode-line status for checking file difference,
Stefan Monnier <=
- [elpa] externals/ssh-deploy 016444c 122/133: Fixed bug with directory difference from deployment root or piped remote files, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy f910a4d 115/133: Passing verbose flag to remote changes handler, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy d924c73 124/133: Merge pull request #60 from ShuguangSun/master, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy a6629c1 130/133: Update ssh-deploy.el, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 1bb2f82 129/133: Added support for forced uploads on explicit save actions, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy cc91b56 132/133: Updated README and version, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy e73907d 063/133: Changed test command, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 4c3eee5 059/133: Fixed issue were checking verbose variable was expecting boolean instead of integer, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy a57ae0c 061/133: Updated use-package example to work with byte-compiled code, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 77f0a1d 070/133: Byte-compilation working for unit test without warning, Stefan Monnier, 2021/03/27