Re: [PATCHv4] rev-parse: add --show-superproject-working-tree

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

 



Stefan Beller <sbeller@xxxxxxxxxx> writes:

>  *this patch*
>  
> * Documentation shamelessly stolen from Junio.

You stole it, and then ...

> +test_expect_success 'showing the superproject correctly' '
> +	git rev-parse --show-superproject-working-tree >out &&
> +	test_must_be_empty out &&

... made sure that the newly documented behaviour is tested as a
feature.  Good.

> +	test_create_repo super &&
> +	test_commit -C super test_commit &&
> +	test_create_repo sub &&
> +	test_commit -C sub test_commit &&
> +	git -C super submodule add ../sub dir/sub &&
> +	echo $(pwd)/super >expect  &&
> +	git -C super/dir/sub rev-parse --show-superproject-working-tree >out &&
> +	test_cmp expect out
> +'
> +



[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]