123456789101112131415161718192021222324252627 |
- {*
- * commitdiffplain.tpl
- * gitphp: A PHP git repository browser
- * Component: Plaintext diff template
- *
- * Copyright (C) 2006 Christopher Han <xiphux@gmail.com>
- *}
- 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}
|