git log vs git diff vs --name-status
From: VMiklos <hidden>
Date: 2016-06-15 22:43:30
hi,
$ git diff HEAD --name-status
M dir/foo1
then i commit this change, and git log says:
$ git log --name-status -1
commit c9128f447c614d5b085286d9d7e84a643fbaea92
Author: VMiklos [off-list ref]
Date: Thu Aug 23 10:41:38 2007 +0200
foo
M dir
only. no /foo1. also is the file is dir/subdir/file1, then only "M dir"
is shown. is this inconsistency expected?
yes, i know that using --stats this problem could go away, but i speak
about --name-status
thanks,
- VMiklos