Junio C Hamano wrote:
> After applying this patch and running "git show | grep test_cmp_rev_output",
> I notice that the second is always "git rev-parse ". Do
> we still need to eval these, or would it be sufficient to do
>
> test_cmp_rev_output () {
> git rev-parse --veri
On Tue, Sep 3, 2013 at 12:07 PM, Jonathan Nieder wrote:
> test_expect_success 'start^0' '
> - test $(cat .git/refs/tags/start) = $(git rev-parse start^0)
> + test_cmp_rev_output tags/start "git rev-parse start^0"
> '
Backwards and yodaish this is.
--
Felipe Contreras
--
To unsubs
Jonathan Nieder writes:
> Use test_cmp instead of passing two command substitutions to the
> "test" builtin. This way:
>
> - when tests fail, they can print a helpful diff if run with
>"--verbose"
>
> - the argument order "test_cmp expect actual" feels natural,
>unlike test = that se
Use test_cmp instead of passing two command substitutions to the
"test" builtin. This way:
- when tests fail, they can print a helpful diff if run with
"--verbose"
- the argument order "test_cmp expect actual" feels natural,
unlike test = that seems a little backwards
- the exit stat
4 matches
Mail list logo