diff options
Diffstat (limited to 'lisp/ravi-init-vc.el')
| -rw-r--r-- | lisp/ravi-init-vc.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/ravi-init-vc.el b/lisp/ravi-init-vc.el index e464d2f..8ddba5c 100644 --- a/lisp/ravi-init-vc.el +++ b/lisp/ravi-init-vc.el @@ -41,6 +41,14 @@ (setq magit-restore-window-configuration t) (add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh) + (defun ravi/sync-top-level () + (when (and (boundp 'ravi/sync-top-level-host) + (not (s-equals? (car s-split-up-to "\\." (system-name) 1) + (car s-split-up-to "\\." ravi/sync-top-level-host 1)))) + (message "Synchronizing with %s" ravi/sync-top-level-host) + (shell-command (concat "rsync -a " (magit-toplevel) " " ravi/sync-top-level-host ":" (magit-toplevel))))) + (add-hook 'magit-post-refresh-hook 'ravi/sync-top-level) + (use-package magit-svn :config (add-hook 'magit-mode-hook 'magit-svn-mode) :ensure t) |
