commitdiffplain.tpl 678 B

123456789101112131415161718192021222324252627
  1. {*
  2. * commitdiffplain.tpl
  3. * gitphp: A PHP git repository browser
  4. * Component: Plaintext diff template
  5. *
  6. * Copyright (C) 2006 Christopher Han <xiphux@gmail.com>
  7. *}
  8. From: {$commit->GetAuthor()}
  9. Date: {$commit->GetAuthorEpoch()|date_format:"%a, %d %b %Y %H:%M:%S %z"}
  10. Subject: {$commit->GetTitle()}
  11. {assign var=tag value=$commit->GetContainingTag()}
  12. {if $tag}
  13. X-Git-Tag: {$tag->GetName()}
  14. {/if}
  15. X-Git-Url: {geturl escape=false fullurl=true project=$project action=commitdiff hash=$commit}
  16. ---
  17. {foreach from=$commit->GetComment() item=line}
  18. {$line}
  19. {/foreach}
  20. ---
  21. {foreach from=$treediff item=filediff}
  22. {if !$filediff->IsBinary()}
  23. {$filediff->GetDiff()}
  24. {/if}
  25. {/foreach}