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
Björn Gustavsson <bgustavsson@gmail.com>
Date
Feb 13, 2010, 11:36 UTC
Message-ID
<6672d0161002130336l6e214a6fh6907db8fa64485be@mail.gmail.com>
In-Reply-To
<20100213112557.GA5165@coredump.intra.peff.net>
2010/2/13 Jeff King <peff@peff.net>:
> On Sat, Feb 13, 2010 at 06:23:43AM -0500, Jeff King wrote:
Show 5 quoted lines
> Side note. Even if we did want to do something like this, your
> implementation is probably not the right way. It will print the huge
> "===" separator even after the last hunk. You would want to keep a
> "$shown_any" variable and output the separator before showing a hunk
> instead.
OK. I can fix that if there seems to be any interest to include it.
-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB
Previous: Jeff KingNext: Björn Gustavsson
Message 4 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.