From: Eric Sunshine <sunshine@sunshineco.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: Git List <git@vger.kernel.org>, David <bouncingcats@gmail.com>,
Diogo de Campos <campos@esss.com.br>,
Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>,
Yann Dirson <dirson@bertin.fr>
Subject: Re: [PATCH 1/3] t3404: restore specialized rebase-editor following commentchar test
Date: Mon, 12 Aug 2013 03:29:04 -0400 [thread overview]
Message-ID: <CAPig+cQpNTFr91wp8DxYs3tabmj4xdmqTQ4_ZoNhp-4+0BUKCA@mail.gmail.com> (raw)
In-Reply-To: <7v4nav1kzx.fsf@alter.siamese.dyndns.org>
On Mon, Aug 12, 2013 at 2:28 AM, Junio C Hamano <gitster@pobox.com> wrote:
> Eric Sunshine <sunshine@sunshineco.com> writes:
>
>> At start of script, t3404 installs a specialized test-editor ($EDITOR)
>> upon which many of the interactive rebase tests depend. Late in t3404,
>> test "rebase -i respects core.commentchar" installs its own custom
>> editor but neglects to restore the specialized editor when finished.
>> This oversight will cause later tests, which require the specialized
>> editor, to fail.
>
> That is not oversight but was deliberately done knowing that it will
> be the last test (and new tests can be added before it).
There is no mention of this being deliberate either in the mailing
list discussion [1] or the commit message (180bad3d1), and other tests
have been added following this one.
[1]: http://thread.gmane.org/gmane.comp.version-control.git/216079
> I think the patch is one way to give _known_ status to later tests
> by declaring the editor installed by "set_fake_editor" the gold
> standard, but isn't a better alternative to make sure that any newly
> added tests after this point (or before the commentchar tests, for
> that matter) set a fake editor it wants to use explicitly?
set_fake_editor is the very first thing done by t3404, and many tests
depend upon this state. It would have been inconsistent for this one
new test to be the exception by having to invoke set_fake_editor
itself, however, I don't mind making the new test more self-contained,
despite the inconsistency. (A later cleanup patch can do the same for
other existing tests.)
next prev parent reply other threads:[~2013-08-12 7:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-12 4:07 [PATCH 0/3] fix interactive rebase short SHA-1 collision bug Eric Sunshine
2013-08-12 4:07 ` [PATCH 1/3] t3404: restore specialized rebase-editor following commentchar test Eric Sunshine
2013-08-12 6:28 ` Junio C Hamano
2013-08-12 7:29 ` Eric Sunshine [this message]
2013-08-12 4:07 ` [PATCH 2/3] t3404: rebase: interactive: demonstrate short SHA-1 collision Eric Sunshine
2013-08-12 6:31 ` Junio C Hamano
2013-08-12 7:40 ` Eric Sunshine
2013-08-12 4:07 ` [PATCH 3/3] rebase: interactive: fix " Eric Sunshine
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=CAPig+cQpNTFr91wp8DxYs3tabmj4xdmqTQ4_ZoNhp-4+0BUKCA@mail.gmail.com \
--to=sunshine@sunshineco.com \
--cc=Matthieu.Moy@grenoble-inp.fr \
--cc=bouncingcats@gmail.com \
--cc=campos@esss.com.br \
--cc=dirson@bertin.fr \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.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 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).