From: Dan Aloni <alonid@gmail.com>
To: Jeff King <peff@peff.net>
Cc: git@vger.kernel.org, Junio C Hamano <gitster@pobox.com>,
Eric Sunshine <sunshine@sunshineco.com>
Subject: Re: [PATCH v7 2/2] ident: add user.useConfigOnly boolean for when ident shouldn't be guessed
Date: Sat, 6 Feb 2016 00:03:25 +0200 [thread overview]
Message-ID: <20160205220325.GA19465@gmail.com> (raw)
In-Reply-To: <20160205214832.GA10052@sigill.intra.peff.net>
On Fri, Feb 05, 2016 at 04:48:33PM -0500, Jeff King wrote:
> On Fri, Feb 05, 2016 at 11:29:06PM +0200, Dan Aloni wrote:
>
> > diff --git a/t/t9904-per-repo-email.sh b/t/t9904-per-repo-email.sh
> > new file mode 100755
> > index 000000000000..f2b33881e46b
> > --- /dev/null
> > +++ b/t/t9904-per-repo-email.sh
>
> Is t9904 the right place for this? Usually t99xx is for very separate
> components.
>
> This is sort-of about "commit", which would put it in the t75xx range.
> But in some ways, it is even more fundamental than that. We don't seem
> to have a lot of tests for ident stuff. The closest is the strict ident
> stuff in t0007.
Will move to t7517. IMHO it's better to verify the commit operation
itself before running further tests that rely on its proper function.
>[..]
> > +reprepare () {
> > + git reset --hard initial
> > +}
>
> Do we need this reprepare stuff at all now? The tests don't care which
> commit we're at when they start.
>
> > +test_expect_success setup '
> > + # Initial repo state
> > + echo "Initial" >foo &&
> > + git add foo &&
> > + git commit -m foo &&
> > + git tag initial &&
>
> A shorter way of saying this is "test_commit foo".
>
> I almost thought we could get rid of this part entirely; the commit
> tests don't care. But we do still need _a_ commit for the clone test,
> since we want to make sure a reflog is written. It would be nice to push
> it down there, but our test environment doesn't allow creating commits,
> because of of useConfigOnly. So it's probably fine to leave it here.
>
> Technically, the final "commit" test does make a commit for us to push,
> but we do generally try to avoid unnecessary dependencies between the
> individual tests.
>
> So all together, maybe:
>[..]
Yes, shorted is better.
I'm squashing in these changes and adding you as Signed-off for v8.
--
Dan Aloni
next prev parent reply other threads:[~2016-02-05 22:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-05 21:29 [PATCH v7] ident: add user.useConfigOnly boolean for when ident shouldn't be guessed Dan Aloni
2016-02-05 21:29 ` [PATCH v7 1/2] fmt_ident: refactor strictness checks Dan Aloni
2016-02-05 21:29 ` [PATCH v7 2/2] ident: add user.useConfigOnly boolean for when ident shouldn't be guessed Dan Aloni
2016-02-05 21:48 ` Jeff King
2016-02-05 22:03 ` Dan Aloni [this message]
2016-02-05 22:20 ` Junio C Hamano
2016-02-05 21:59 ` Eric Sunshine
2016-02-05 22:18 ` Dan Aloni
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=20160205220325.GA19465@gmail.com \
--to=alonid@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=peff@peff.net \
--cc=sunshine@sunshineco.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.
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.