git.exe --git-dir=... --work-tree=... status --porcelain
marks non-added files with "?? <filename>" at the beginning of the line.
added, but non-committed changes start with a "<space>M <filename>".
The itom version should only be marked to be non-clean, if there is at least one line starting with M.