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

Re: [PATCH 0/5] format-patch: improve handling of `format.notes`

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 9, 2019, 21:36 UTC
Message-ID
<xmqqmuc1tc4d.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<cover.1575896661.git.liu.denton@gmail.com>
Denton Liu <liu.denton@gmail.com> writes:
> ... This series uses
> the way `--notes=<ref1> --no-notes --notes=<ref2>` is handled as a model
> and structures the handling of `format.notes` in a similar manner,
> allowing one `format.notes = false` to override previous configs.
Makes sense.
Show 27 quoted lines
> Also, in the same email, it was pointed out that git_config() should be
> called before repo_init_revisions(). In 13cdf78094 (format-patch: teach
> format.notes config option, 2019-05-16), the order was reversed. This
> series changes it back such that git_config() is called before
> repo_init_revisions().
>
> This series is based on top of 'dl/format-patch-notes-config'.
>
> It has minor textual conflicts with 'pu'. The merge resolution can be found at
> https://github.com/Denton-L/git.git on branch
> 'published/published/pu-format-patch-notes-config'.
>
> [1]: https://lore.kernel.org/git/CABPp-BF44+6gvZVNimKf-k7AWbOjw3OK-cJeFunNR96wvZGkcw@mail.gmail.com/
>
> Denton Liu (5):
>   notes: rename to load_display_notes()
>   notes: create init_display_notes() helper
>   notes: extract logic into set_display_notes()
>   format-patch: use --notes behavior for format.notes
>   format-patch: move git_config() before repo_init_revisions()
>
>  builtin/log.c           | 26 +++++++++-----------------
>  notes.c                 | 30 ++++++++++++++++++++++++++++++
>  notes.h                 | 21 ++++++++++++++++++---
>  revision.c              | 22 +++++-----------------
>  t/t4014-format-patch.sh | 32 ++++++++++++++++++++++++++++++++
>  5 files changed, 94 insertions(+), 37 deletions(-)
Previous: Denton LiuNext: Elijah Newren
Message 10 of 11 in “format-patch: improve handling of `format.notes`”
  1. 0/5 format-patch: improve handling of `format.notes`Denton Liu, Dec 9, 2019
  2. 1/5 notes: rename to load_display_notes()Denton Liu, Dec 9, 2019
  3. 2/5 notes: create init_display_notes() helperDenton Liu, Dec 9, 2019
  4. 3/5 notes: extract logic into set_display_notes()Denton Liu, Dec 9, 2019
  5. Eric SunshineDec 9, 2019
  6. Denton LiuDec 9, 2019
  7. Philip OakleyDec 10, 2019
  8. 4/5 format-patch: use --notes behavior for format.notesDenton Liu, Dec 9, 2019
  9. 5/5 format-patch: move git_config() before repo_init_revisions()Denton Liu, Dec 9, 2019
  10. Junio C HamanoDec 9, 2019
  11. Elijah NewrenDec 9, 2019

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.