From 67002575589c1b77c86ecacd6edb5a05e81015cb Mon Sep 17 00:00:00 2001 From: Chris Lee Date: Sun, 27 Apr 2014 23:43:14 +0000 Subject: Show parents in commit diff page --- templates/repo/diff.tmpl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'templates/repo/diff.tmpl') diff --git a/templates/repo/diff.tmpl b/templates/repo/diff.tmpl index 0dce4053..38fe3fee 100644 --- a/templates/repo/diff.tmpl +++ b/templates/repo/diff.tmpl @@ -8,9 +8,16 @@ Browse Source

{{.Commit.Message}}

+ {{ $username := .Username }} + {{ $reponame := .Reponame }}
- commit {{ShortSha .CommitId}} +
    + {{range .Parents}} +
  • parent {{ShortSha .}}
  • + {{end}} +
  • commit {{ShortSha .CommitId}}
  • +

-- cgit v1.2.3