git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH/GSoC] add a add.patch config variable

From
Christian Couder <christian.couder@gmail.com>
Date
Mar 25, 2016, 07:01 UTC
Message-ID
<CAP8UFD0KZk1nTgR8gdbedsAuw2ztWZDWri6EkeEkf8FhwS9yag@mail.gmail.com>
In-Reply-To
<1458853787-29807-2-git-send-email-d.f.fischer@web.de>
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
Previous: Junio C Hamano
Message 6 of 6 in “[GSoC] Proposal”
  1. XZSMar 24, 2016
  2. add a add.patch config variableXZS, Mar 24, 2016
  3. Junio C HamanoMar 24, 2016
  4. Dominik FischerMar 25, 2016
  5. Junio C HamanoMar 25, 2016
  6. Christian CouderMar 25, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.