git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git diff: print hunk numbers?
@ 2021-09-08 20:40 Aleksey Midenkov
  2021-09-08 21:39 ` Jeff King
  0 siblings, 1 reply; 5+ messages in thread
From: Aleksey Midenkov @ 2021-09-08 20:40 UTC (permalink / raw)
  To: Git Mailing List

Is that possible/how to print hunk numbers with git diff?

F.ex. instead of:

@@ -106,7 +110,6 @@ while ($r < $statement_count)
...

To print something like:

@@ -106,7 +110,6 @@ 4 @@ while ($r < $statement_count)
...

filterdiff uses hunk numbers intensively. Work with line-number ranges
is not so effective.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-09-09 21:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-08 20:40 git diff: print hunk numbers? Aleksey Midenkov
2021-09-08 21:39 ` Jeff King
2021-09-08 22:02   ` Junio C Hamano
2021-09-09 15:45   ` Aleksey Midenkov
2021-09-09 21:31     ` Aleksey Midenkov

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).