git diff: print hunk numbers?
- From
- Aleksey Midenkov <midenok@gmail.com>
- Date
- Sep 8, 2021, 20:40 UTC
- Message-ID
- <CAF8BazDKG03bpBEQyC9EsM8WxV_7WnQ386T=VT49EHNzsZ3PPw@mail.gmail.com>
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.