Re: [PATCH] Add new @ shortcut for HEAD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 29, 2013 at 6:06 PM, Junio C Hamano <gitster@xxxxxxxxx> wrote:

> --- a/t/t1503-rev-parse-verify.sh
> +++ b/t/t1503-rev-parse-verify.sh
> @@ -115,13 +115,18 @@ test_expect_success 'master@{n} for various n' '
>         test_must_fail git rev-parse --verify master@{$Np1}
>  '
>
> -test_expect_success 'empty @' '
> +test_expect_success 'empty @ and ref@ without trailing {stuff}' '
> +       test_when_finished "git branch -d twoago" &&
> +       git branch twoago HEAD~2 &&
>         rev_hash=$(git rev-parse --verify @) &&
>         test "$rev_hash" = "$HASH4" &&
>         rev_hash=$(git rev-parse --verify HEAD@) &&
>         test "$rev_hash" = "$HASH4" &&
>         rev_hash=$(git rev-parse --verify master@) &&
> -       test "$rev_hash" = "$HASH4"
> +       test "$rev_hash" = "$HASH4" &&
> +       rev_hash=$(git rev-parse --verify twoago@) &&
> +       test "$rev_hash" = "$HASH2" &&
> +       test_must_fail git rev-parse --verify nosuch@
>  '

Sure, but none of the tests above do that. Up to you.

-- 
Felipe Contreras
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]