git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: gitk: Turn short SHA1 names into links too

From
Brad King <brad.king@kitware.com>
Date
Sep 26, 2008, 12:15 UTC
Message-ID
<48DCD27E.6060704@kitware.com>
In-Reply-To
<237967ef0809260121w1c7cc516tceb3be2cbebb85bc@mail.gmail.com>
Mikael Magnusson wrote:
Show 18 quoted lines
> 2008/9/26 Wincent Colaiuta <win@wincent.com>:
>> It's a shame that tcl/tk regular expressions don't appear to support
>> anchoring matches against word boundaries (ie. "\b").
> 
> \y appears to achieve this;
> 
> % regexp {abc\y} 'abc'
> 1
> % regexp {abc\y} 'abcd'
> 0
> % regexp {\yabc\y} 'uabc,d'
> 0
> % regexp {\yabc\y} 'u+abc,d'
> 1
> 
> I have tcl/tk 8.5 so I cannot promise that isn't a new addition, I didn't
> look it up anywhere, but it's \y in some other implementations too, so I
> tried it.
It goes back at least as far as tcl/tk 8.2:
http://www.tcl.tk/man/tcl8.2.3/TclCmd/re_syntax.htm#M54
-Brad
Previous: Mikael MagnussonNext: Marco Costalba
Message 7 of 12 in “gitk: Turn short SHA1 names into links too”
  1. Linus TorvaldsSep 26, 2008
  2. Linus TorvaldsSep 26, 2008
  3. Wincent ColaiutaSep 26, 2008
  4. Andreas EricssonSep 26, 2008
  5. Wincent ColaiutaSep 26, 2008
  6. Mikael MagnussonSep 26, 2008
  7. Brad KingSep 26, 2008
  8. Marco CostalbaSep 26, 2008
  9. Paul MackerrasSep 27, 2008
  10. Paul MackerrasSep 27, 2008
  11. Paul MackerrasOct 20, 2008
  12. Junio C HamanoOct 21, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.