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

Re: [PATCH v0 0/2] git-less: a specialized pager for git-log

From
HMHitoshi Mitake <h.mitake@gmail.com>
Date
Mar 23, 2012, 17:18 UTC
Message-ID
<CAMO-S2hZXX-RSN+KQZ=a+dSbkAhziqvF4S_iSH+TqqtcFRiypA@mail.gmail.com>
In-Reply-To
<4F6C4B59.8060102@op5.se>
On Fri, Mar 23, 2012 at 19:07, Andreas Ericsson <ae@op5.se> wrote:
Show 16 quoted lines
> On 03/22/2012 08:00 PM, Junio C Hamano wrote:
>> Hitoshi Mitake<h.mitake@gmail.com>  writes:
>>
>>> If the pager can recognize the end of each commit, more confortable viewing of
>>> git-log's output will be possible.
>>
>> I think people just use "/^commit .*<RET>" once and then nagivate with "n"
>> (and to change direction, "?<RET>") for this.
>>
>
> Or capital N.
>
> It's mostly useful when one wants to view the patch as well as the message,
> so an alias like
>
>    logp = !PAGER='less -p ^commit' git log -p

Yes, moving is not so large problem. But less cannot search regex with specified limit. Sometime I want to search string e.g. "something" only in the commit I'm focusing on.

>
> should work well, and also make LISP nerds giggle.
>
p? :)
Show 8 quoted lines
> --
> Andreas Ericsson                   andreas.ericsson@op5.se
> OP5 AB                             www.op5.se
> Tel: +46 8-230225                  Fax: +46 8-230231
>
> Considering the successes of the wars on alcohol, poverty, drugs and
> terror, I think we should give some serious thought to declaring war
> on peace.
-- 
Hitoshi Mitake
h.mitake@gmail.com
Previous: Andreas EricssonNext: Alex Plotnick
Message 6 of 10 in “git-less: a specialized pager for git-log”
  1. 0/2 git-less: a specialized pager for git-logHitoshi Mitake, Mar 22, 2012
  2. 1/2 git-less: a specialized pager for git-logHitoshi Mitake, Mar 22, 2012
  3. 2/2 git-less: git side support for git-lessHitoshi Mitake, Mar 22, 2012
  4. Junio C HamanoMar 22, 2012
  5. Andreas EricssonMar 23, 2012
  6. Hitoshi MitakeMar 23, 2012
  7. Alex PlotnickMar 23, 2012
  8. Jeff EplerMar 30, 2012
  9. Hitoshi MitakeMar 23, 2012
  10. Nguyen Thai Ngoc DuyMar 24, 2012

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.