git log vs git diff vs --name-status

2 messages, 1 author, 2016-06-15 · open the first message on its own page

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

Re: git log vs git diff vs --name-status

From: VMiklos <hidden>
Date: 2016-06-15 22:43:30

Hello,

Na Thu, Aug 23, 2007 at 10:43:15AM +0200, VMiklos [off-list ref] pisal(a):
M       dir
sorry, i needed the -r option

- VMiklos
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help