* [StGit PATCH] Add support for initializing a branch for stgit from Emacs.
@ 2008-09-09 8:47 David Kågedal
2008-09-10 15:58 ` Karl Hasselström
0 siblings, 1 reply; 2+ messages in thread
From: David Kågedal @ 2008-09-09 8:47 UTC (permalink / raw)
To: Catalin Marinas, Karl Hasselström, Git Mailing List
Signed-off-by: David Kågedal <davidk@lysator.liu.se>
---
contrib/stgit.el | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
This diff was taken against kha/experimental, but I don't think the
file has changed there.
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)
--
1.6.0.rc2.7.gbf8a
--
David Kågedal
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [StGit PATCH] Add support for initializing a branch for stgit from Emacs.
2008-09-09 8:47 [StGit PATCH] Add support for initializing a branch for stgit from Emacs David Kågedal
@ 2008-09-10 15:58 ` Karl Hasselström
0 siblings, 0 replies; 2+ messages in thread
From: Karl Hasselström @ 2008-09-10 15:58 UTC (permalink / raw)
To: David Kågedal; +Cc: Catalin Marinas, Git Mailing List
Thanks, that's a nice addition. (I haven't had the chance to try it
out yet, though.)
--
Karl Hasselström, kha@treskal.com
www.treskal.com/kalle
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-10 15:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-09 8:47 [StGit PATCH] Add support for initializing a branch for stgit from Emacs David Kågedal
2008-09-10 15:58 ` Karl Hasselström
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).