How to read the mode field of git-ls-tree's output How to read the mode field of git-ls-tree's output git git