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

Re: git diff: print hunk numbers?

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 8, 2021, 22:02 UTC
Message-ID
<xmqq4kau3evq.fsf@gitster.g>
In-Reply-To
<YTktpQ9uZkbwtuLO@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
> Of course that only helps if the patch actually applies. If your goal is
> to filter out hunks that don't apply, it won't help. :)

That can be done without filterdiff, though, via "git apply --reject" ;-)

Previous: Jeff KingNext: Aleksey Midenkov
Message 3 of 5 in “git diff: print hunk numbers?”
  1. Aleksey MidenkovSep 8, 2021
  2. Jeff KingSep 8, 2021
  3. Junio C HamanoSep 8, 2021
  4. Aleksey MidenkovSep 9, 2021
  5. Aleksey MidenkovSep 9, 2021

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.