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.

+3


source to share


1 answer


As far as I know, it git ls-files -t

is semi-obsolete just in favor git ls-files -v

, which should have the only difference is that you can tell you about the supposed unchanged bit as well (using lowercase for the files that were installed).



+1


source







All Articles