% if not dirname.raw: % reltree = './' % else: % reltree = '../' * (len(dirname.split('/')) - 1) % end % relroot = reltree + '../' * (len(branch.split('/')) - 1) git » {{repo.name}} » {{branch}} » {{dirname.raw}}{{fname.raw}}

git » {{repo.name}} » {{branch}} » tree

[{{branch}}] / % base = smstr(reltree) % for c in dirname.split('/'): % if not c.raw: % continue % end {{c.raw}} / % base += c + '/' % end {{!fname.html}}

% if len(blob.raw_content) == 0:
empty — 0 bytes
% elif can_embed_image(repo, fname.raw): {{!embed_image_blob(fname.raw, blob.raw_content)}} % elif is_binary(blob.raw_content): % lim = 256 % for offset, hex1, hex2, text in hexdump(blob.raw_content[:lim]): % end % if lim < len(blob.raw_content): % end
binary — {{'{:,}'.format(len(blob.raw_content))}} bytes
{{offset}}
{{hex1}}
{{hex2}}
{{text}}
% elif can_markdown(repo, fname.raw):
{{!markdown_blob(blob.utf8_content)}}
% elif can_colorize(blob.utf8_content): {{!colorize_blob(fname.raw, blob.utf8_content)}} % else:
{{blob.utf8_content}}
% end