Skip to content

Commit b31c831

Browse files
committed
Fix lint
1 parent ea7d8b6 commit b31c831

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

routers/api/v1/repo/commits.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ func GetAllCommits(ctx *context.APIContext) {
214214
ctx.JSON(http.StatusOK, &apiCommits)
215215
}
216216

217+
// DownloadCommitDiff render a commit's raw diff
217218
func DownloadCommitDiff(ctx *context.APIContext) {
218219
// swagger:operation GET /repos/{owner}/{repo}/git/commits/{sha}.diff repository repoDownloadCommitDiff
219220
// ---
@@ -244,6 +245,7 @@ func DownloadCommitDiff(ctx *context.APIContext) {
244245
DownloadCommitDiffOrPatch(ctx, "diff")
245246
}
246247

248+
// DownloadCommitPatch render a commit's raw patch
247249
func DownloadCommitPatch(ctx *context.APIContext) {
248250
// swagger:operation GET /repos/{owner}/{repo}/git/commits/{sha}.patch repository repoDownloadCommitPatch
249251
// ---
@@ -274,6 +276,7 @@ func DownloadCommitPatch(ctx *context.APIContext) {
274276
DownloadCommitDiffOrPatch(ctx, "patch")
275277
}
276278

279+
// DownloadCommitDiffOrPatch render a commit's raw diff
277280
func DownloadCommitDiffOrPatch(ctx *context.APIContext, diffType string) {
278281
repoPath := models.RepoPath(ctx.Repo.Owner.Name, ctx.Repo.Repository.Name)
279282
if err := git.GetRawDiff(

0 commit comments

Comments
 (0)