I use the following command to identify the no of lines which are been modified in between 2 commits. the b26e..and the e1f5... are the commit hashes
git difftool -y -x "diff -c" b26ea5c511970d0211186c3b1e119224465ad365 e2f5104a2dd1afdc27803ead58b74cfd18ae50be
below is the output of the file
*** /tmp/n90Z9a_Testing.txt 2016-12-02 11:47:59.027168926 +0530
--- /tmp/19ymab_Testing.txt 2016-12-02 11:47:59.027168926 +0530
***************
*** 1,3 ****
initial commit
added new line
! added for modification
--- 1,5 ----
initial commit
added new line
! added for modification, this is modified.This is modified again
! after modifiying for the second time, this line is added
! This line added for complete deletion and then replace with another
from this I need to filter out only the lines that are been modified from the first commit, in simple words I need to filter only this part from the above output
*** /tmp/n90Z9a_Testing.txt 2016-12-02 11:47:59.027168926 +0530
--- /tmp/19ymab_Testing.txt 2016-12-02 11:47:59.027168926 +0530
***************
*** 1,3 ****
initial commit
added new line
! added for modification
How can I filter out it, thanks in advance