Git diff --diff-filter gives revers output (A instead of D and vise-versa )

Hi,

I deleted two files (test1.json and test2.json) from my repository branch and run following command
git diff --name-status current_commit_id previous_commit_id

I was expecting output
D test1.json
D test2.json

but I got actual out as
A test1.json
A test2.json

I ttried adding them back and then I got output

D test1.json
D test2.json

Not sure if I am doing anything wrong… Any help?

A post was merged into an existing topic: Git diff filter gives reverse output for D(deleted) and A (added)