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

[PATCH 0/2] give range-diff at the end of single patch output

From
Junio C Hamano <gitster@pobox.com>
Date
May 23, 2024, 22:50 UTC
Message-ID
<20240523225007.2871766-1-gitster@pobox.com>

When running "format-patch" on a multiple patch series, the output coming from "--interdiff" and "--range-diff" options is inserted after the "shortlog" list of commits and the overall diffstat.

The idea is that shortlog/diffstat are shorter and with denser information content, which gives a better overview before the readers dive into more details of range/inter diff.

When working on a single patch, however, we stuff the inter/range diff output before the actual patch, next to the diffstat. This pushes down the patch text way down with inter/range diff output, distracting readers.

Move the inter/range diff output to the very end of the output, after all the patch text is shown.

The first patch is a no-op refactoring, the second patch makes the actual behaviour change.

Junio C Hamano (2):
  show_log: factor out interdiff/range-diff generation
  format-patch: move range/inter diff at the end of a single patch
    output
 log-tree.c              | 89 ++++++++++++++++++++++-------------------
 t/t4014-format-patch.sh | 17 +++++---
 2 files changed, 59 insertions(+), 47 deletions(-)
-- 
2.45.1-246-gb9cfe4845c
Next: Junio C Hamano
Message 1 of 18 in “give range-diff at the end of single patch output”
  1. 0/2 give range-diff at the end of single patch outputJunio C Hamano, May 23, 2024
  2. 1/2 show_log: factor out interdiff/range-diff generationJunio C Hamano, May 23, 2024
  3. 2/2 format-patch: move range/inter diff at the end of a single patch outputJunio C Hamano, May 23, 2024
  4. Patrick SteinhardtMay 24, 2024
  5. Junio C HamanoMay 24, 2024
  6. Patrick SteinhardtMay 27, 2024
  7. Dragan SimicMay 27, 2024
  8. Junio C HamanoMay 27, 2024
  9. Patrick SteinhardtMay 28, 2024
  10. Junio C HamanoMay 28, 2024
  11. Patrick SteinhardtMay 29, 2024
  12. Junio C HamanoMay 29, 2024
  13. Dragan SimicMay 30, 2024
  14. 2/2 format-patch: move range/inter diff at the end of a single patch outputJunio C Hamano, May 24, 2024
  15. Dragan SimicMay 23, 2024
  16. Junio C HamanoMay 23, 2024
  17. Dragan SimicMay 23, 2024
  18. Junio C HamanoMay 24, 2024

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.