git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Jeff King <peff@peff.net>
To: Derrick Stolee <stolee@gmail.com>
Cc: Bryan Turner <bturner@atlassian.com>,
	Git Users <git@vger.kernel.org>,
	"gitster@pobox.com" <gitster@pobox.com>
Subject: Re: Split commit graphs and commit-graph read
Date: Sun, 10 Nov 2019 22:29:46 -0500	[thread overview]
Message-ID: <20191111032946.GA5912@sigill.intra.peff.net> (raw)
In-Reply-To: <87f16645-6af4-9703-1d0d-eb64728d2849@gmail.com>

On Sun, Nov 10, 2019 at 08:19:20PM -0500, Derrick Stolee wrote:

> > Running some tests with commands like git for-each-ref and git
> > rev-list shows that the "split" commit graph is being used (setting
> > core.commitGraph=false makes commands noticeably slower), so
> > functionally all seems well. But should git commit-graph read be
> > handling this better?
> 
> Unfortunately, you're running into an issue because I designed the
> "read" subcommand poorly (and also forgot to update it for
> incremental commit-graph files). The biggest issue is that "read"
> is not really meant for end-users. It really should have been built
> as a test-tool. This point was corrected when I got around to writing
> the multi-pack-index since it uses "test-tool read-midx" instead of
> add.
> 
> To fix this issue, I would probably go about it by removing the "read"
> subcommand and creating a "test-tool read-commit-graph" for the tests
> that need that output.
> 
> If others on-list think that the better thing to do is to update the
> "read" subcommand to provide the same output, but iterate over each
> layer of an incremental commit-graph, then I can do that work instead.

In theory I suppose one could use it to debug a commit-graph file "in
the field" as it were, where somebody does not necessarily have the
test-tool programs. But in practice, I have not ever done that (I didn't
even know "commit-graph read" was there), and it's not that big a deal
to just have a build of git.git handy.

I'd be much more likely to use "commit-graph verify". And perhaps it
could grow a "--verbose" flag if somebody really wants that (but I think
it would be fine to punt until somebody cares enough to do so).

I guess dropping the sub-command is technically a backwards incompatible
change, but since it didn't do anything that normal users would find
useful in the first place, I wouldn't be sorry to see it go.

-Peff

  parent reply	other threads:[~2019-11-11  3:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-08 23:41 Split commit graphs and commit-graph read Bryan Turner
2019-11-11  1:19 ` Derrick Stolee
2019-11-11  2:09   ` Junio C Hamano
2019-11-11  3:29   ` Jeff King [this message]
2019-11-12  0:28   ` Bryan Turner

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

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191111032946.GA5912@sigill.intra.peff.net \
    --to=peff@peff.net \
    --cc=bturner@atlassian.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=stolee@gmail.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).