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

Re: [PATCH 0/1] Add coverage for 'git format-patch --range-diff' single-patch case

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Sep 11, 2018, 21:21 UTC
Message-ID
<CAPig+cT4HeX85SXZgyVQpAZarDFaafeBri7zLpExA=3O403qRw@mail.gmail.com>
In-Reply-To
<pull.37.git.gitgitgadget@gmail.com>

On Tue, Sep 11, 2018 at 4:26 PM Derrick Stolee via GitGitGadget <gitgitgadget@gmail.com> wrote:

> In es/format-patch-rangediff, we added a '--range-diff' option to
> git-format-patch to automatically add a range-diff. We also added an option
> to write the diff as commentary to a single patch submission. However, this
> check was not tested.

It was an intentional (though unjustified) oversight. Thanks for working on this.

> I discovered this test gap by running 'make coverage-test coverage-report'
> on 'next' and then comparing the uncovered lines with those in the diff
> between 'master' and 'next'. I have a script that automates this process,
> and I'm still working on polishing it.

Interesting. Does your script detect that the --creation-factor option added by patch 13/14 [1] also lacks a test? (I'm not necessarily suggesting adding a test at the moment. Even Dscho's git-range-diff series doesn't have a test for "creation factor", so it wouldn't necessarily make sense to add a test only for the git-format-patch case. Instead, we'd want, at some point, to add tests covering both git-range-diff and git-format-patch.)

[1]: https://public-inbox.org/git/20180722095717.17912-14-sunshine@sunshineco.com/
Previous: Derrick StoleeNext: Derrick Stolee via GitGitGadget
Message 9 of 11 in “Add coverage for 'git format-patch --range-diff' single-patch case”
  1. 0/1 Add coverage for 'git format-patch --range-diff' single-patch caseDerrick Stolee via GitGitGadget, Sep 11, 2018
  2. 1/1 t3206-range-diff.sh: cover single-patch caseDerrick Stolee via GitGitGadget, Sep 11, 2018
  3. Junio C HamanoSep 11, 2018
  4. Junio C HamanoSep 11, 2018
  5. Stefan BellerSep 11, 2018
  6. Eric SunshineSep 11, 2018
  7. Derrick StoleeSep 12, 2018
  8. Derrick StoleeSep 11, 2018
  9. Eric SunshineSep 11, 2018
  10. 0/1 Add coverage for 'git format-patch --range-diff' single-patch caseDerrick Stolee via GitGitGadget, Sep 12, 2018
  11. 1/1 t3206-range-diff.sh: cover single-patch caseDerrick Stolee via GitGitGadget, Sep 12, 2018

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.