Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: option to display the previous line number #3

Open
malaverdiere opened this issue Dec 28, 2017 · 1 comment
Open

Comments

@malaverdiere
Copy link

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:  
@jay
Copy link
Owner

jay commented Nov 14, 2020

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: git-for-windows/git#2635

/cc @ElectricRCAircraftGuy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants