From: Jon Seymour <jon.seymour@gmail.com>
To: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
Cc: Jeff King <peff@peff.net>, Git List <git@vger.kernel.org>
Subject: Re: Walking commits from the first
Date: Tue, 16 Feb 2010 01:20:12 +1100 [thread overview]
Message-ID: <2cfc40321002150620i7e290c10pfc978ec9754a914a@mail.gmail.com> (raw)
In-Reply-To: <2cfc40321002150605l4de9d970t919ee56d7a3d697e@mail.gmail.com>
On Tue, Feb 16, 2010 at 1:05 AM, Jon Seymour <jon.seymour@gmail.com> wrote:
> On Mon, Feb 15, 2010 at 10:33 PM, Pavan Kumar Sunkara
>
> The history is useful for understanding how something came to be -
> commits followed backwards down one merge branch will tend to have
> some semantic relationship to each other unless your committers are on
> acid. Trying to comprehend the evolution of history by replaying it
> forwards and keeping track of n parallel threads of development as
> they diverge seems like an unnecessarily complicated way of trying to
> comprehend the world.
>
That said, of course, git once had an option to rev-list that I
contributed (--merge-order) that attempted to create the best possible
linear history by performing a topological sort that minimised the
number of "jumps" between semantically unrelated commits in the linear
order. The algorithm was kind of cool (based as it was on a
conservation of mass analogy), but it eventually got stripped out for
various eminently understandable reasons (like no-one was using it, I
wasn't maintaining it and it was the only remaining use of a
dependency on the open-ssl infinite precision integer arithmetic
libraries that complicated the build).
git rev-list --topo-order will do a topological sort that guarantees
that you never visit a commit before visiting all its ancestors.
> jon.
>
>> --
>> To unsubscribe from this list: send the line "unsubscribe git" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
>
prev parent reply other threads:[~2010-02-15 14:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <e72faaa81002142037g7f5f518erb9fefbb239124bc5@mail.gmail.com>
2010-02-15 4:39 ` Walking commits from the first Pavan Kumar Sunkara
2010-02-15 8:06 ` Jeff King
2010-02-15 11:33 ` Pavan Kumar Sunkara
2010-02-15 14:05 ` Jon Seymour
2010-02-15 14:20 ` Jon Seymour [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2cfc40321002150620i7e290c10pfc978ec9754a914a@mail.gmail.com \
--to=jon.seymour@gmail.com \
--cc=git@vger.kernel.org \
--cc=pavan.sss1991@gmail.com \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).