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

Re: What's cooking in git.git (Jan 2025, #06; Wed, 22)

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 2, 2025, 23:33 UTC
Message-ID
<xmqqwme73ost.fsf@gitster.g>
In-Reply-To
<20250131233452.GB3544301@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 8 quoted lines
>> Nice way to use extended context to show why the change makes sense.
>
> I've been tempted to support a:
>
>   Diff-options: -U10
>
> trailer, but that is probably overkill and full of annoying corner
> cases.

Do you mean to embed it in the commit log trailer and upon seeing it, the log family of commands add it to their setup_revisions() invocation, thusly affecting things like "format-patch" and "show"?

As a reminder for a patch submitter (i.e., communicated by you who wrote the commit to future you who will run format-patch for submission), something locally maintained might be sufficient, e.g. refs/notes/diffopts that is not shared by default, but still, this hint probably wants to be per-path (ideally per-hunk).

But I think it will make it annoying if you forced those who fetched from you to use "-U10" when they do "git show", as the choice would be strongly affected by personal preference. And I certainly do not want to see anything less benign than "-U10" silently forced upon me.

Thanks.
Previous: D. Ben KnobleNext: Jeff King
Message 12 of 20 in “What's cooking in git.git (Jan 2025, #06; Wed, 22)”
  1. Junio C HamanoJan 22, 2025
  2. Jeff KingJan 23, 2025
  3. Junio C HamanoJan 23, 2025
  4. Jeff KingJan 31, 2025
  5. Jeff KingJan 31, 2025
  6. Junio C HamanoJan 31, 2025
  7. Jeff KingFeb 1, 2025
  8. Junio C HamanoFeb 2, 2025
  9. Junio C HamanoFeb 3, 2025
  10. Jeff KingFeb 4, 2025
  11. D. Ben KnobleFeb 2, 2025
  12. Junio C HamanoFeb 2, 2025
  13. Jeff KingFeb 3, 2025
  14. Eric SunshineJan 23, 2025
  15. Junio C HamanoJan 23, 2025
  16. Taylor BlauJan 23, 2025
  17. Patrick SteinhardtJan 24, 2025
  18. Toon ClaesJan 24, 2025
  19. Junio C HamanoJan 24, 2025
  20. Junio C HamanoJan 24, 2025

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.