Investigate new `ls-files --format` option
New in Git 2.38.0:
In Git 2.38, that is no longer the case, with ls-files‘s new --format option. You can now customize how each entry is printed, with fields to print an object’s name and mode, as well as more esoteric options, like its stage in the index, or end-of-line (EOL) behavior.
https://github.blog/2022-10-03-highlights-from-git-2-38/
Might require support from git-workarea.
Cc: @brad.king