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

Re: allow a differn't diff.context config for git format-patch

From
Jeff King <peff@peff.net>
Date
Apr 23, 2019, 03:06 UTC
Message-ID
<20190423030648.GA6344@sigill.intra.peff.net>
In-Reply-To
<CA+49okrda1=dV=rN23oFg7LQmRp+idkDDDxFQ9R5jhGJFHKpEg@mail.gmail.com>
On Sun, Apr 14, 2019 at 04:48:53PM -0500, Shawn Landden wrote:
> When I send patches I want them to have lots of context, but when just
> looking at a diff, I can always open the file for context.

Seems like a reasonable thing to want. You can already use "git format-patch -U20 ...". The usual advice for putting that in config is to define an alias wit your preferred option. I don't think it would be too big a problem for format-patch to learn some options to configure its diffs. We already have some options in format.* for various things.

-Peff
Previous: Shawn LanddenNext: Junio C Hamano
Message 2 of 7 in “allow a differn't diff.context config for git format-patch”
  1. Shawn LanddenApr 14, 2019
  2. Jeff KingApr 23, 2019
  3. Junio C HamanoApr 23, 2019
  4. Jeff KingApr 23, 2019
  5. Shawn LanddenMay 12, 2019
  6. Jeff KingMay 14, 2019
  7. Jeff KingMay 14, 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.