File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -214,6 +214,7 @@ func GetAllCommits(ctx *context.APIContext) {
214
214
ctx .JSON (http .StatusOK , & apiCommits )
215
215
}
216
216
217
+ // DownloadCommitDiff render a commit's raw diff
217
218
func DownloadCommitDiff (ctx * context.APIContext ) {
218
219
// swagger:operation GET /repos/{owner}/{repo}/git/commits/{sha}.diff repository repoDownloadCommitDiff
219
220
// ---
@@ -244,6 +245,7 @@ func DownloadCommitDiff(ctx *context.APIContext) {
244
245
DownloadCommitDiffOrPatch (ctx , "diff" )
245
246
}
246
247
248
+ // DownloadCommitPatch render a commit's raw patch
247
249
func DownloadCommitPatch (ctx * context.APIContext ) {
248
250
// swagger:operation GET /repos/{owner}/{repo}/git/commits/{sha}.patch repository repoDownloadCommitPatch
249
251
// ---
@@ -274,6 +276,7 @@ func DownloadCommitPatch(ctx *context.APIContext) {
274
276
DownloadCommitDiffOrPatch (ctx , "patch" )
275
277
}
276
278
279
+ // DownloadCommitDiffOrPatch render a commit's raw diff
277
280
func DownloadCommitDiffOrPatch (ctx * context.APIContext , diffType string ) {
278
281
repoPath := models .RepoPath (ctx .Repo .Owner .Name , ctx .Repo .Repository .Name )
279
282
if err := git .GetRawDiff (
You can’t perform that action at this time.
0 commit comments