Dnia sobota 8. listopada 2008 21:02, Francis Galiegue napisał:[...] Like in example with 'link' rule, not having to write whole <a href="http://example.com/bugzilla.php?id=$1">$&</a> (or something like that). Committags doesn't need to be replaced by links. In this case I meant here using 'signoff' class for Signed-off-by: (and the like) lines, by wrapping it in '<span class="signoff">' ... '</a>'. SHA1 (or shortened SHA1 from 8 charasters to 40 characters, or to be even more exact something that looks like SHA1) is replaced by link to 'object' view, which in turn finds type of object and _redirect_ to proper view, be it 'commit' (most frequent), 'tag', 'blob' or 'tree'. We could have used instead gitweb link with 'h' (hash) parameter, but without 'a' (action) parameter, which currently finds type of object and _uses_ correct view... One might not want to link SHA1, for example if there are lots of false positives because of commit message conventions or something, or refine 'signoff' committag to use different styles for different types of signoff: Signed-off-by, Acked-by, Tested-by, other. Having explicit 'signoff' committag allows us also to put some committags _after_ it, for example SPAM-protection of emails, or add some committag before 'sha1' to filter out some SHA1 match false positives. For example 'signoff' committag... well, it is not exactly pure "html" but rather something like template. [committag "signoff"] match = "(?i)^ *(signed[ \\-]off[ \\-]by[ :]|acked[ \\-]by[ :]|cc[ :])" templ = "{<span class=\"signoff\">}$1{</span>}" Or simpler [committag "signoff"] match = "(?i)^ *(signed[ \\-]off[ \\-]by[ :]|acked[ \\-]by[ :]|cc[ :])" class = signoff For example in link match, the text of the link can be further refined by committags later in sequence. -- Jakub Narebski Poland -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| James Bottomley | Re: Announce: Linux-next (Or Andrew's dream :-)) |
| Andrew Morton | echo mem > /sys/power/state |
| Peter Zijlstra | [PATCH 00/23] per device dirty throttling -v8 |
git: | |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | [GIT]: Networking |
| Gerrit Renker | [PATCH 18/37] dccp: Support for Mandatory options |
| Michael S. Tsirkin | Re: [RFC PATCH v2 03/19] vbus: add connection-client helper infrastructure |
| NeilBrown | [PATCH 00/18] Assorted md patches headed for 2.6.30 |
| Justin Piszcz | General question (scheduler) with SSDs? |
| Neil Brown | Re: Any hope for a 27 disk RAID6+1HS array with four disks reporting "No md superb... |
| Ryan Wagoner | High IO Wait with RAID 1 |
