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:15 UTC
Message-ID
<CAMO-S2gUaek83ACtLLBsLFYBpHuj=ePZRPzEPav+uP6igjN7oA@mail.gmail.com>
In-Reply-To
<7v1uokxxzh.fsf@alter.siamese.dyndns.org>
On Fri, Mar 23, 2012 at 04:00, Junio C Hamano <gitster@pobox.com> wrote:
Show 7 quoted lines
> 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.

Yes, but less cannot search regex with specified range of text (in this case, from the beginning to the end of the commit).

Show 8 quoted lines
>
>> For implementing this feature, I had to make modification of git-log
>
> I do not think the change to "log" is necessary nor worth it.  If the
> pager is so specialized to be tied to git, it should learn to recognize
> the output from "git", namely, "git log" and "git log -p" would never have
> a line that begins with "^commit " that is not the beginning of one record
> for a commit.

This rule is useful for detection of each commit from pager. I didn't have to modify git-log... With this rule, the pager can be independent from the tree of git, thanks!

>
> If you are not comfortable using "less", perhaps a program like "tig" that
> is very specialized for working with git might help you better.
>

Thanks for your information. I didn't know about tig. I'd like to test it or modify my pager for more comfortable git-log viewing.

Thanks for your feedback,
-- 
Hitoshi Mitake
h.mitake@gmail.com
Previous: Jeff EplerNext: Nguyen Thai Ngoc Duy
Message 9 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.