mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 11:28:24 +00:00 
			
		
		
		
	Move some functions to gitrepo package (#35503)
This commit is contained in:
		| @@ -210,7 +210,7 @@ func ToCommit(ctx context.Context, repo *repo_model.Repository, gitRepo *git.Rep | ||||
|  | ||||
| 	// Get diff stats for commit | ||||
| 	if opts.Stat { | ||||
| 		diffShortStat, err := gitdiff.GetDiffShortStat(gitRepo, "", commit.ID.String()) | ||||
| 		diffShortStat, err := gitdiff.GetDiffShortStat(ctx, repo, gitRepo, "", commit.ID.String()) | ||||
| 		if err != nil { | ||||
| 			return nil, err | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user