diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ravi-init-vc.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/ravi-init-vc.el b/lisp/ravi-init-vc.el index da864ca..6c1d3a0 100644 --- a/lisp/ravi-init-vc.el +++ b/lisp/ravi-init-vc.el @@ -41,12 +41,16 @@ (setq magit-restore-window-configuration t) (add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh) + (defvar ravi/sync-top-level-host-extra-args "" + "Extra arguments to rsync for `ravi/sync-top-level'") + (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))))) + (shell-command (concat "rsync -a " ravi/sync-top-level-host-extra-args + " " (magit-toplevel) " " ravi/sync-top-level-host ":" (magit-toplevel))))) (add-hook 'magit-post-refresh-hook 'ravi/sync-top-level) (use-package magit-svn |
