Executing the following gives me the differences in line count between local changes and the remote versions of the file:
git diff --shortstat C:\dev\Sprint7 origin/master:C:\dev\Sprint7
Example result:
18 files changed, 11 insertions(+), 8 deletions(-)
Please, how do I calculate the total number of unique changed lines?
For instance, if line 5 of Login.jsp file is deleted and same line 5 is replace by another line (or string) (i.e. deletion and insertion is done on line 5), I want this to be counted as 1 changed line.
Can I get that count from the command above by summing the insertions and deletions?
Any help will be appreciated.