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

Re: [PATCH] blame: allow -L n,m to have an m bigger than the file's line count

From
Jay Soffian <jaysoffian@gmail.com>
Date
Feb 10, 2010, 13:37 UTC
Message-ID
<76718491002100537h521fcc26gb267ed7cd2b8db6f@mail.gmail.com>
In-Reply-To
<1265786864-5460-1-git-send-email-bebarino@gmail.com>
On Wed, Feb 10, 2010 at 2:27 AM, Stephen Boyd <bebarino@gmail.com> wrote:
> and get what I want but that isn't very discoverable. If the range is
> greater than the number of lines just truncate the range to go up to
> the end of the file.

I agree this is the right thing to do. I'm working on a patch to support matching multiple times when given a regex range and made just that change as well. :-)

j.
Previous: SZEDER GáborNext: Stephen Boyd
Message 3 of 9 in “blame: allow -L n,m to have an m bigger than the file's line count”
  1. blame: allow -L n,m to have an m bigger than the file's line countStephen Boyd, Feb 10, 2010
  2. SZEDER GáborFeb 10, 2010
  3. Jay SoffianFeb 10, 2010
  4. Stephen BoydFeb 10, 2010
  5. Junio C HamanoFeb 10, 2010
  6. Jay SoffianFeb 10, 2010
  7. Junio C HamanoFeb 10, 2010
  8. Jay SoffianFeb 10, 2010
  9. Junio C HamanoFeb 12, 2010

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.