{* * commitdiffplain.tpl * gitphp: A PHP git repository browser * Component: Plaintext diff template * * Copyright (C) 2006 Christopher Han *} From: {$commit->GetAuthor()} Date: {$commit->GetAuthorEpoch()|date_format:"%a, %d %b %Y %H:%M:%S %z"} Subject: {$commit->GetTitle()} {assign var=tag value=$commit->GetContainingTag()} {if $tag} X-Git-Tag: {$tag->GetName()} {/if} X-Git-Url: {geturl escape=false fullurl=true project=$project action=commitdiff hash=$commit} --- {foreach from=$commit->GetComment() item=line} {$line} {/foreach} --- {foreach from=$treediff item=filediff} {if !$filediff->IsBinary()} {$filediff->GetDiff()} {/if} {/foreach}