On 12/12/2011 01:20 PM, Andrea Crotti wrote:
I would like to load magit with autoload, but at the moment I don't because I don't
find an equivalent construct for magit-svn.

When working on a git-svn repository, magit still works fine, but if I don't load manually
magit-svn then I can't really do much.
Is there a way to make it detect and load automatically magit-svn when it detects it?

(A simple regexp matching in .git/config would do I think).


Thinking about something similar
(defun ca-detect-git-svn ()
  (interactive)
  (with-temp-buffer
    (insert-file-contents ".git/config")
    (goto-line 0)
    (condition-case err
        (re-search-forward "svn-remote")
      (search-failed
       -1))
    ))
Which does not really work yet though..

Reply via email to