]> source.dussan.org Git - gitea.git/commit
Diff patch (#3345)
authorDennis Chen <barracks510@gmail.com>
Sat, 30 Jul 2016 15:02:22 +0000 (11:02 -0400)
committer无闻 <u@gogs.io>
Sat, 30 Jul 2016 15:02:22 +0000 (23:02 +0800)
commitdfab54d5a2739b3b2a1fe45481c2269d1aeec1a9
tree28ee62bf282ef7117a1d499a821a2e1d8ca90052
parent3e22ae3412409caa6f1a456a59d9524f96a3dce2
Diff patch (#3345)

* Add support for .diff and .patch

Add the ability to get text-diff and format-patch by adding .diff or
.patch in the end of a commit url. Issue #2641

* models: git_diff: various fixes

* Renames commitId to commitID.
* Writes stderr to a bytes.Buffer and displays proper error message on
command failure.
* Various style changes.

Signed-off-by: Dennis Chen <barracks510@gmail.com>
models/git_diff.go
routers/repo/commit.go