X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/78e5af69d99659769b052e4c00fe5b23a8356231..6c8a90e1b43ee2f8e687a2b392fb0ce192e61bda:/contrib/stgit.el diff --git a/contrib/stgit.el b/contrib/stgit.el index 5aaf311..aafefaf 100644 --- a/contrib/stgit.el +++ b/contrib/stgit.el @@ -130,7 +130,10 @@ Argument DIR is the repository path." 'face 'stgit-description-face) (when (memq patchsym stgit-marked-patches) (replace-match "*" nil nil nil 2) - (setq marked (cons patchsym marked)))))) + (setq marked (cons patchsym marked))))) + ((looking-at "stg series: Branch \".*\" not initialised") + (forward-line 1) + (insert "Run M-x stgit-init to initialise"))) (forward-line 1)) (setq stgit-marked-patches (nreverse marked))))) @@ -218,6 +221,13 @@ Commands: (goto-char p) nil))) +(defun stgit-init () + "Run stg init" + (interactive) + (stgit-capture-output nil + (stgit-run "init")) + (stgit-refresh)) + (defun stgit-mark () "Mark the patch under point" (interactive)