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

Re: [PATCH] add -p: make the beginning of the hunk easier to see

From
Jeff King <peff@peff.net>
Date
Feb 13, 2010, 11:55 UTC
Message-ID
<20100213115512.GA5472@coredump.intra.peff.net>
In-Reply-To
<6672d0161002130342h348765a0j76f63972c4bbe060@mail.gmail.com>
On Sat, Feb 13, 2010 at 12:42:56PM +0100, Björn Gustavsson wrote:
> As an alternative to my patch, the color coding could be changed.
> The beginning of a chunk is now marked with a faint bluish color (the part
> that looks like "@@ -42,9 +43,8 @@").
You can tweak that color with the color.diff.frag config variable.
> Giving the "Stage this hunk..." prompt some noticeable color (such as red),
> could make it easier to the see beginning of the hunk. Or
> simply doing a form-feed (but I suppose not everyone would
> like that).

If you are using color.interactive (or color.ui), that should already be "bold blue". You can change it to red with color.interactive.prompt.

Personally, I prefer the color approach. It's less ugly looking (IMHO), and it is configurable, so people who don't like it don't have to see it. It's also already implemented, though one could perhaps make an argument for changing the defaults.

-Peff
Previous: Björn GustavssonNext: Björn Gustavsson
Message 7 of 10 in “add -p: make the beginning of the hunk easier to see”
  1. add -p: make the beginning of the hunk easier to seeBjörn Gustavsson, Feb 13, 2010
  2. Jeff KingFeb 13, 2010
  3. Jeff KingFeb 13, 2010
  4. Björn GustavssonFeb 13, 2010
  5. Björn GustavssonFeb 13, 2010
  6. Björn GustavssonFeb 13, 2010
  7. Jeff KingFeb 13, 2010
  8. Björn GustavssonFeb 13, 2010
  9. Julian PhillipsFeb 13, 2010
  10. Björn GustavssonFeb 13, 2010

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.