The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

MrJobs (4) [Avatar] Offline
#1
Consider the output of this command: % git commit -a -m "This is the second commit.".

Book output:
This is the second commit.
1 file changed, 1 insertion(+)

My own output:
This is the second commit.
1 file changed, 2 insertions(+), 1 deletion(-)

Why is my output different from that of the book ? Does git now consider addition of the 2nd line to the file as two operations instead of one ?

1) erase the 1st line, i.e. 1 deletion(-).

2) Insert the 1st line (back) & 2nd line, i.e. 2 insertions(+).