git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [StGit PATCH] emacs mode: handle "stg status" output with #
@ 2008-04-13 16:48 Karl Hasselström
  0 siblings, 0 replies; only message in thread
From: Karl Hasselström @ 2008-04-13 16:48 UTC (permalink / raw)
  To: Catalin Marinas; +Cc: git, David Kågedal

Recently, "stg status" started separating patch names and descriptions
with # rather than |. This broke some parts of the emacs mode, such as
coloring and patch selection.

This patch makes the emacs mode accept either delimiter.

Signed-off-by: Karl Hasselström <kha@treskal.com>

---

 contrib/stgit.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/contrib/stgit.el b/contrib/stgit.el
index ba6df6a..339ef13 100644
--- a/contrib/stgit.el
+++ b/contrib/stgit.el
@@ -107,7 +107,7 @@ Argument DIR is the repository path."
         (cond ((looking-at "Branch: \\(.*\\)")
                (put-text-property (match-beginning 1) (match-end 1)
                                   'face 'bold))
-              ((looking-at "\\([>+-]\\)\\( \\)\\([^ ]+\\) *| \\(.*\\)")
+              ((looking-at "\\([>+-]\\)\\( \\)\\([^ ]+\\) *[|#] \\(.*\\)")
                (let ((state (match-string 1))
                      (patchsym (intern (match-string 3))))
                  (put-text-property

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-04-13 16:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-13 16:48 [StGit PATCH] emacs mode: handle "stg status" output with # 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).