Skip to main content

Module ls_tree

Module ls_tree 

Source
Expand description

mkit ls-tree [-r] [-z] <tree-ish> [<path>...] — list the entries of a tree, like git ls-tree.

Each entry prints as <mode> <type> <hash>\t<name> where <mode> is the git octal mode (100644/100755/120000/040000) and <hash> is a 64-hex BLAKE3 id. -r recurses (showing leaf blobs with full paths and omitting tree lines, like git); -z NUL-terminates records and emits raw paths (otherwise special-byte paths are C-style quoted).

Functions§

run