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.