showlinenum
showlinenum copied to clipboard
Feature request: option to display the previous line number
The title says it all. I need to record the added and deleted line number which has a specific string. Your tool is very useful for the added line, but I still need to count for the deleted one.
Example.
@@ -400,3 +397,3 @@ EOD;
397:
:- if ( !current_user_can( 'edit_post', $postID ) )
398:+ if ( ! get_post( $postID ) || ! current_user_can( 'edit_post', $postID ) )
399:
Should become:
@@ -400,3 +397,3 @@ EOD;
400,397:
401,NA :- if ( !current_user_can( 'edit_post', $postID ) )
NA,398 :+ if ( ! get_post( $postID ) || ! current_user_can( 'edit_post', $postID ) )
402,399:
Sorry I do not have plans to implement this. There is a new script git diffn which may do what you need.
Ref: https://stackoverflow.com/a/61997003 Ref: https://github.com/git-for-windows/git/issues/2635
/cc @ElectricRCAircraftGuy