* lisp/vc/vc-dispatcher.el (vc-tor): New user option.
(vc-do-command): If vc-tor is non-nil, use 'torsocks'.
;; FIXME what about file names with spaces?
(if (not filelist) "." (mapconcat 'identity filelist " ")))
+(defcustom vc-tor nil
+ "If non-nil, communicate with the repository site via Tor."
+ :type 'boolean
+ :group 'vc)
+
;;;###autoload
(defun vc-do-command (buffer okstatus command file-or-list &rest flags)
"Execute a slave command, notifying user and checking for errors.
;; due to potential truncation of long messages.
(message-truncate-lines t)
(full-command
- (concat (if (string= (substring command -1) "\n")
+ (concat (if vc-tor "torsocks " "")
+ (if (string= (substring command -1) "\n")
(substring command 0 -1)
command)
" " (vc-delistify flags)