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

Re: seek request

From
Petr Baudis <pasky@ucw.cz>
Date
May 26, 2005, 08:29 UTC
Message-ID
<20050526082941.GC22262@pasky.ji.cz>
In-Reply-To
<20050522071106.GA8060@tumblerings.org>

Dear diary, on Sun, May 22, 2005 at 09:11:06AM CEST, I got a letter where Zack Brown <zbrown@tumblerings.org> told me that...

Show 18 quoted lines
> Hi folks,
> 
> In Cogito, it would be nice to have a
> 
> cg-seek +
> 
> that would seek to the next archive state. This way, I could start off seeking
> back to the beginning of an archive, and quickly step forward, looking at files
> as I went, to the present.
> 
> A corresponding
> cg-seek -
> would go the reverse direction, back toward the beginning of a project.
> 
> I'm not sure how useful this would be for actual source code - I suspect any
> benefit would be minimal - but the benefit for documentation and text files,
> where the only way to test improvements is to read them by eye, would be
> significant.

Well, and what if the commit has multiple parents? Or - even much more interestingly - multiple children?

If we keep applying the first parent rule, we could just traverse the graph from heads/master to HEAD following this rule, and then just take a step back to where we came from for cg-seek +. It wouldn't be exactly cheap, but it'd probably work.

Patch welcomed. ;-)
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor
Previous: Zack Brown
Message 2 of 2 in “seek request”
  1. Zack BrownMay 22, 2005
  2. Petr BaudisMay 26, 2005

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.