Re: [PATCH/GSoC] add a add.patch config variable
On Thu, Mar 24, 2016 at 10:09 PM, XZS <d.f.fischer@web.de> wrote:
Show 14 quoted lines
>
> diff --git a/t/t3701-add-interactive.sh b/t/t3701-add-interactive.sh
> index deae948..25e4b2e 100755
> --- a/t/t3701-add-interactive.sh
> +++ b/t/t3701-add-interactive.sh
> @@ -380,4 +380,13 @@ test_expect_success 'patch mode ignores unmerged entries' '
> test_cmp expected diff
> '
>
> +test_expect_success 'patch mode can be activated per option' '
> + git config add.patch true &&
> + git reset --hard &&
> + echo change >test &&
> + echo y | git add -p > output &&
Why are you using "-p" if you want to test that the config option works?
Show 5 quoted lines
> + cat output &&
> + grep "Stage this hunk \[y,n,q,a,d,/,e,?\]?" output
> +'
> +
> test_done