From: Junio C Hamano <gitster@pobox.com>
To: Daniel Barkalow <barkalow@iabervon.org>
Cc: Johannes Schindelin <Johannes.Schindelin@gmx.de>, git@vger.kernel.org
Subject: Re: [PATCH 8/9] Use git diff instead of diff in t7201
Date: Tue, 05 Feb 2008 18:10:47 -0800 [thread overview]
Message-ID: <7vr6fq6di0.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <alpine.LNX.1.00.0802052011290.13593@iabervon.org> (Daniel Barkalow's message of "Tue, 5 Feb 2008 20:13:51 -0500 (EST)")
Daniel Barkalow <barkalow@iabervon.org> writes:
> On Tue, 5 Feb 2008, Junio C Hamano wrote:
>
>> Daniel Barkalow <barkalow@iabervon.org> writes:
>>
>> > Well, it's something I tripped over when builtin-checkout wasn't passing
>> > the tests and I couldn't figure out what it was doing wrong from the
>> > output. Like [3/9], it's relevant to evaluating whether the series works,
>> > even if it's not important for whether it actually does work.
>>
>> Yeah, using "diff -u" instead of just "diff" is an improvement
>> for debuggability which matters a lot in the test scripts.
>
> I think I asked before and didn't hear back (or maybe I got distracted
> and didn't ask); do you want this to use "diff -u" everywhere or "git
> diff" everywhere? This test is currently part "diff" and part "git diff",
> and I went for git diff" everywhere, but you seemed to prefer "diff -u".
Typically the test sequence is "do this with git, do that with
git, produce the output with git, now what happened? did we
produce a correct result?" And we often compare 'expect' and
'actual' to see if there are discrepancies.
My preference is NEVER using "git diff" when comparing expected
result and the actual output from git. When "git diff" has
breakage, it would break unrelated tests and make debugging
needlessly harder.
We need to have tests for regressions in "git diff", but such a
test would use "git diff" in earlier parts of the test sequence
that _produce_ the output to be compared with expected result.
next prev parent reply other threads:[~2008-02-06 2:11 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-04 18:36 [PATCH 8/9] Use git diff instead of diff in t7201 Daniel Barkalow
2008-02-05 1:40 ` Johannes Schindelin
2008-02-05 20:39 ` Daniel Barkalow
2008-02-05 23:44 ` Junio C Hamano
2008-02-06 1:13 ` Daniel Barkalow
2008-02-06 2:10 ` Junio C Hamano [this message]
2008-02-06 4:30 ` Daniel Barkalow
2008-02-06 5:21 ` Junio C Hamano
-- strict thread matches above, loose matches on Subject: below --
2008-01-25 23:25 Daniel Barkalow
2008-01-25 23:57 ` Junio C Hamano
2008-01-26 0:11 ` Daniel Barkalow
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=7vr6fq6di0.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=barkalow@iabervon.org \
--cc=git@vger.kernel.org \
/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).