All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Nieder <jrnieder@gmail.com>
To: Jeff King <peff@peff.net>
Cc: "Junio C Hamano" <gitster@pobox.com>,
	git@vger.kernel.org, "Nguyễn Thái Ngọc Duy" <pclouds@gmail.com>
Subject: nd/setup
Date: Thu, 8 Apr 2010 16:42:33 -0500	[thread overview]
Message-ID: <20100408214233.GA32441@progeny.tock> (raw)
In-Reply-To: <20100408073825.GA15153@coredump.intra.peff.net>

Jeff King wrote:
> On Wed, Apr 07, 2010 at 05:48:02PM -0700, Junio C Hamano wrote:

>> * nd/setup (2010-04-05) 43 commits
[...]
> Probably one or both
> of us should look at it before applying it to next, but assuming it
> passes a basic sanity check, I think the best thing will be to get it in
> 'next' early so we can shake out any bugs during the next cycle.

I don’t think it’s anywhere near master material yet.

First, the basic problem.  The core of the series is in patch 40,
which adds a new runtime self-checker for git.  Kind of like lockdep.
Instead of proving locking correctness, this proves that whenever git
tries to access the repository, it has already been clearly and
unambiguously declared which repository to access (and in particular,
whether to try to access a repository at all).  Very neat, and it
reveals many bugs, which is nice.

When lockdep finds a locking problem, it quietly prints a message to
the kernel log and the kernel is able to keep going without worrying
about it.  Unfortunately, the repository access checker from nd/setup
is not so graceful: it makes git die even though it should be able to
carry on just fine.  Example: with nd/setup, ls-remote currently fails
when run outside any repository.  Probably the checker should be
configured by an environment variable that indicates where to print
its messages and whether to bail out when a problem is detected (for
tests).

A few of the earlier patches seem iffy, though they all start with a
correct idea.  For example, one of them changes the semantics of
rev-parse --show-prefix without documenting it.  So I have been looking
for time to document what each patch fixes.  Without some explanation
of what the patches are supposed to fix and what they are not supposed
to break, merging even them early would be a bit dangerous.

Sorry to be the bearer of bad tidings,
Jonathan

  reply	other threads:[~2010-04-08 21:42 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-08  0:48 What's cooking in git.git (Apr 2010, #03; Wed, 07) Junio C Hamano
2010-04-08  6:05 ` Johannes Sixt
2010-04-08  6:33   ` Junio C Hamano
2010-04-08  9:01     ` Fredrik Kuivinen
2010-04-08  9:14       ` ***SPAM*** " Tor Arntsen
2010-04-08  9:16         ` Tor Arntsen
2010-04-08  7:38 ` Jeff King
2010-04-08 21:42   ` Jonathan Nieder [this message]
2010-04-09  0:13     ` nd/setup Jeff King
2010-04-11 11:01       ` [PATCH] Take it easy on unallowed access to non-existent repository Nguyễn Thái Ngọc Duy
2010-04-11 15:45         ` Sverre Rabbelier
2010-04-11 17:49           ` Nguyen Thai Ngoc Duy
2010-04-11 17:52             ` Sverre Rabbelier
2010-04-11 17:57               ` Nguyen Thai Ngoc Duy
2010-04-09  5:46     ` nd/setup Nguyen Thai Ngoc Duy
2010-04-09  5:57       ` nd/setup Jonathan Nieder
2010-04-09  6:56         ` nd/setup Nguyen Thai Ngoc Duy
2010-04-11 17:57     ` nd/setup Nguyen Thai Ngoc Duy
  -- strict thread matches above, loose matches on Subject: below --
2010-04-02  8:40 What's cooking in git.git (Apr 2010, #01; Fri, 02) Junio C Hamano
2010-04-02 11:23 ` Nguyen Thai Ngoc Duy
2010-04-03  5:00   ` nd/setup Jonathan Nieder
2010-04-03 14:39     ` nd/setup Nguyen Thai Ngoc Duy
2010-04-04 18:41     ` nd/setup Nguyen Thai Ngoc Duy
2010-04-04 21:42       ` nd/setup Junio C Hamano

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=20100408214233.GA32441@progeny.tock \
    --to=jrnieder@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=pclouds@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.