After I called git add <file>
the command git status
will show me something like:
...
new file: <file>
Somehow I can't manage it to get the same information by using ls-files
, it (ls-files -tc
in this case) will show me:
H <commited file>
H <other commited file>
H <file>
There seems no commandline switch to exist for new files. The file is reported as cached, which is ok, but how do I find out that it is not commited at this time?
Is this possible with ls-files
or some similar command (where I do not have to parse a lot of output like in the case of git status
)?