After I called git add <file> , the git status command will show me something like:
... new file: <file>
Somehow I canβt manage it to get the same information using ls-files , it ( ls-files -tc in this case) will show me:
H <commited file> H <other commited file> H <file>
There seems to be no command line switch for new files. The file is reported as cached, which is normal, but how do I know if it is not committed at this time?
Is this possible with ls-files or some similar command (where I do not need to parse a lot of output, as in the case of git status )?
git
tanascius Feb 19 '10 at 16:50 2010-02-19 16:50
source share