def _lstree(files, dirs):
for f, sha1 in files:<EOL><INDENT>yield "<STR_LIT>".format(sha1, f)<EOL><DEDENT>for d, sha1 in dirs:<EOL><INDENT>yield "<STR_LIT>".format(sha1, d)<EOL><DEDENT>
Make git ls-tree like output.