diff options
Diffstat (limited to 'pkg/handler/git')
| -rw-r--r-- | pkg/handler/git/handler.go | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/pkg/handler/git/handler.go b/pkg/handler/git/handler.go index 2ddc5f1..40fae24 100644 --- a/pkg/handler/git/handler.go +++ b/pkg/handler/git/handler.go @@ -340,11 +340,17 @@ func (g *GitHandler) Commit(w http.ResponseWriter, r *http.Request) error {  		return err  	} +	diff, err := g.gitService.Diff(name, ref) +	if err != nil { +		return err +	} +  	gitList := &templates.GitItemPage{  		Name: name,  		Ref:  ref,  		GitItemBase: &templates.GitItemCommitPage{  			Commit: commit, +			Diff:   diff,  		},  	}  	templates.WritePageTemplate(w, gitList) | 
