bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

patch: implement %{t} for loginfo


From: Todd Vierling
Subject: patch: implement %{t} for loginfo
Date: Wed, 8 Jun 2005 17:13:41 -0400 (Eastern Daylight Time)

NetBSD, among other projects, has used a change similar to this for many
years, to allow the tag name to be passed to loginfo scripts.  This allows
the popular log_accum script to supply the tag name in the Subject line.

Below is a diff against 1.12.12, and is really very trivial; I wonder if
it's just oversight that prevented this from being contributed sooner.  It
would be really nice if this didn't require external maintenance anymore.  :)

--- src/logmsg.c.orig   2005-06-08 17:06:55.000000000 -0400
+++ src/logmsg.c        2005-06-08 17:07:43.000000000 -0400
@@ -641,6 +641,10 @@
                li = p->data;
                arg = li->rev_new ? li->rev_new : "NONE";
                break;
+           case 't':
+               li = p->data;
+               arg = li->tag ? li->tag : "";
+               break;
            default:
 #ifdef SUPPORT_OLD_INFO_FMT_STRINGS
                if (c->onearg)

-- 
-- Todd Vierling <tv@duh.org> <tv@pobox.com> <todd@vierling.name>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]