Difference in how "git status" and "git diff --name-only" lists filenames
- From
- Gustaf Hendeby <hendeby@gmail.com>
- Date
- Dec 2, 2007, 14:04 UTC
- Message-ID
- <bf7b2dda0712020604x209d6665i9ab58b32834b2cee@mail.gmail.com>
A while ago 'git status' was patched to report relative pathnames. (I like that change it makes cut'n'paste easier.) However, 'git diff --name-only' and 'git diff --name-status' (other commands as well), which gives in a sense similar output has not been changed the same way. Is this intentionally, or just because no one has stepped up and provided a patch? If the difference is to stay, maybe this should be reflected in the help texts to avoid any confusion.
/Gustaf