For example this is all you need to checkout a file you are visiting.
(defun p4-checkout-buffer()
"Check out the current buffer from perforce using a shell command line"
(interactive)
(shell-command (format "p4.exe edit %s" (buffer-file-name)))
(toggle-read-only -1))
No comments:
Post a Comment