Dump each file status into a git tree
I'm trying to output the name and status of each file (tracked or untracked) in the git working tree - preferably in a machine readable format, but I can't seem to find a git command to do this.
git-status
and git-diff
only there seem to be options for displaying modified and unchecked files - even in verbose mode, they do not display tracked, unchanged files.
The closest I can find is git ls-files -t -cdmo
, which is pretty much what I want (lists each file with a status tag), but the command is listed as semi-loaded.
Is there an alternative that I should be using? - I find it hard to believe that git does not have a simple "list all files with status" command.
source to share