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

Re: [PATCH] diff: add ruby funcname pattern

From
Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Date
Aug 2, 2008, 05:41 UTC
Message-ID
<cb7bb73a0808012241s80a06fq1ac54a3350169f6c@mail.gmail.com>
In-Reply-To
<0C57339C-50EF-4199-A14B-AFF04C92EF87@sb.org>
On Sat, Aug 2, 2008 at 2:31 AM, Kevin Ballard <kevin@sb.org> wrote:
>
> As a Ruby user, the regex for the funcname looks fine to me.
What is your opinion about the anonymous code blocks?

I've been thinking that another possibility could be to have two ruby funcnames, a simpler one (the one I presented) that only has 'named' blocks, and a more thorough one that also matches up anonymous blocks. User could then choose which one to use in their code by having gitattributes such as *.rb diff=ruby or *.rb diff=ruby-full (or whatever else).

I'm not sure this would be a sensible policy though.
-- 
Giuseppe "Oblomov" Bilotta
Previous: Junio C HamanoNext: Kevin Ballard
Message 9 of 14 in “diff: add ruby funcname pattern”
  1. diff: add ruby funcname patternGiuseppe Bilotta, Jul 31, 2008
  2. Junio C HamanoAug 1, 2008
  3. Giuseppe BilottaAug 1, 2008
  4. Junio C HamanoAug 1, 2008
  5. Giuseppe BilottaAug 1, 2008
  6. Jeff KingAug 1, 2008
  7. Kevin BallardAug 2, 2008
  8. Junio C HamanoAug 2, 2008
  9. Giuseppe BilottaAug 2, 2008
  10. Kevin BallardAug 2, 2008
  11. Giuseppe BilottaAug 2, 2008
  12. Johannes SchindelinAug 2, 2008
  13. Giuseppe BilottaAug 2, 2008
  14. Lee MarlowAug 2, 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.