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

Re: Bug: git log -L manpage claims regexes are supported, but they are not

From
DHDaniel Heath <daniel@heath.cc>
Date
Dec 4, 2020, 02:56 UTC
Message-ID
<c41cbbd9-d395-41fe-9013-8a1bac68d491@www.fastmail.com>
In-Reply-To
<CAPig+cT-Tf2ray+j9b45vz-qoiSZ4MkTyGVDr6PRJCXsvbx0=Q@mail.gmail.com>
Thanks very much! 
I was thrown by `git blame` having an almost-identical but opposite interface (must use a space and not a colon).

Thanks, Daniel Heath

On Fri, Dec 4, 2020, at 1:54 PM, Eric Sunshine wrote:
Show 12 quoted lines
> On Thu, Dec 3, 2020 at 9:50 PM Daniel <daniel@heath.cc> wrote:
> >    $ git log -L ^/bootstrap-sass/,+2 Gemfile
> > fatal: -L argument not 'start,end:file' or ':funcname:file':
> > ^/bootstrap-sass/,+2
> >
> > $ git help log
> >         -L <start>,<end>:<file>, -L :<funcname>:<file>
> 
> You're missing the colon between <end> and <file> in your example. It should be:
> 
>     $ git log -L ^/bootstrap-sass/,+2:Gemfile
>
Previous: Eric Sunshine
Message 3 of 3 in “Bug: git log -L manpage claims regexes are supported, but they are not”
  1. DanielDec 4, 2020
  2. Eric SunshineDec 4, 2020
  3. Daniel HeathDec 4, 2020

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.