git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Sixt <j6t@kdbg.org>
To: Axel Bonnet <axel.bonnet@ensimag.imag.fr>
Cc: git@vger.kernel.org,
	"Diane Gasselin" <diane.gasselin@ensimag.imag.fr>,
	"Clément Poulain" <clement.poulain@ensimag.imag.fr>
Subject: Re: [RFC/PATCH 4/4] t/t8006: test textconv support for blame
Date: Thu, 3 Jun 2010 17:44:07 +0200	[thread overview]
Message-ID: <201006031744.07569.j6t@kdbg.org> (raw)
In-Reply-To: <1275562038-7468-5-git-send-email-axel.bonnet@ensimag.imag.fr>

On Donnerstag, 3. Juni 2010, Axel Bonnet wrote:
> +cat >helper <<'EOF'
> +#!/bin/sh
> +sed 's/^/converted: /' "$@" >helper.out
> +cat helper.out
> +EOF

You don't need an intermediate file here, do you? Without it, this textconv 
script is a one-liner; now, isn't it possible to configure a shell command as 
textconv command, i.e., without this helper script?

> +test_expect_success 'setup ' '
> +	echo test 1 >one.bin &&
> +	echo test number 2 >two.bin &&
> +	ln one.bin link.bin &&

Do you need a hard link? Can't you just copy the file at the right time?

> +test_expect_success 'blame with --no-textconv' '
> +	git blame --no-textconv one.bin | grep Number2 >blame
> +	find_blame <blame >result

It would be nice if you could write this like, e.g.,

	git blame --no-textconv one.bin >blame &&
	find_blame Number2 <blame >result

so that the git command is not part of a pipeline (otherwise, unexpected exit 
codes would go undetected).

Please look for missing '&&', you forgot it in many places.

-- Hannes

  reply	other threads:[~2010-06-03 15:47 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-03 10:47 [RFC/PATCH 0/4] textconv support for blame Axel Bonnet
2010-06-03 10:47 ` [RFC/PATCH 1/4] textconv: make the API public Axel Bonnet
2010-06-03 10:47   ` [RFC/PATCH 2/4] textconv: make diff_options accessible from blame Axel Bonnet
2010-06-03 10:47     ` [RFC/PATCH 3/4] textconv: support for blame Axel Bonnet
2010-06-03 10:47       ` [RFC/PATCH 4/4] t/t8006: test textconv " Axel Bonnet
2010-06-03 15:44         ` Johannes Sixt [this message]
2010-06-04  8:55           ` Diane Gasselin
2010-06-04  9:45             ` Matthieu Moy
2010-06-04  8:49         ` Matthieu Moy
2010-06-04  6:00       ` [RFC/PATCH 3/4] textconv: " Junio C Hamano
2010-06-04 10:34         ` Diane Gasselin
2010-06-06 21:51       ` Jeff King
2010-06-04  5:48     ` [RFC/PATCH 2/4] textconv: make diff_options accessible from blame Junio C Hamano
2010-06-04  7:59       ` Matthieu Moy
2010-06-04 10:21         ` bonneta
2010-06-04 17:23           ` Matthieu Moy

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=201006031744.07569.j6t@kdbg.org \
    --to=j6t@kdbg.org \
    --cc=axel.bonnet@ensimag.imag.fr \
    --cc=clement.poulain@ensimag.imag.fr \
    --cc=diane.gasselin@ensimag.imag.fr \
    --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).