git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alex Riesen <raa.lkml@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Use the modern syntax of git-diff-files in t2002-checkout-cache-u.sh
Date: Sun, 27 Apr 2008 19:49:07 +0200	[thread overview]
Message-ID: <20080427174907.GB3828@steel.home> (raw)
In-Reply-To: <7viqy3gqn9.fsf@gitster.siamese.dyndns.org>

Junio C Hamano, Sun, Apr 27, 2008 19:21:30 +0200:
> Alex Riesen <raa.lkml@gmail.com> writes:
> 
> > As a nice side effect it also fixes t2002-checkout-cache-u.sh on FreeBSD 4,
> > /bin/sh of which has problems interpreting "! command" construction.
> >
> > Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
> > ---
> >
> > To be honest - it was the other way around: I wanted to fix the test
> > on FreeBSD, but ended up using --exit-code and test_must_fail
> 
> Do you mean /bin/sh there misinterprets "! cmd1 | cmd2" as "(! cmd1) |
> cmd2" and always returns true or something silly like that?  I see a few
> other places in t3400, t3700, t5302, t7002, etc. that use that construct
> without an obvious workaround "! (cmd1 | cmd2)" which t0030 uses.

Yes. That one was just a place I very slowly got to (I have not much
motivation and only one _very remote_ (and production) machine to try
things on).

> >  test_expect_success \
> >  'with -u, git checkout-index picks up stat information from new files.' '
> >  rm -f path0 &&
> >  git read-tree $t &&
> >  git checkout-index -u -f -a &&
> > -git diff-files | diff - /dev/null'
> > +git diff-files --exit-code'
> 
> Is this something FreeBSD 4 has trouble with as well (not a request to
> drop this hunk but asking for info)?

No, this is just the same file and similar construction (use external
diff just to figure out if there are any differences). This is why I
(re)named the patch for "modern syntax". It is named "make t2002 work
on FreeBSD4" in my tree.

      reply	other threads:[~2008-04-27 17:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-27 11:31 [PATCH] Use the modern syntax of git-diff-files in t2002-checkout-cache-u.sh Alex Riesen
2008-04-27 17:21 ` Junio C Hamano
2008-04-27 17:49   ` Alex Riesen [this message]

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=20080427174907.GB3828@steel.home \
    --to=raa.lkml@gmail.com \
    --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).