mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Refactor some file edit related code (#34744)
Follow up #34350 --------- Co-authored-by: delvh <dev.lh@web.de>
This commit is contained in:
		| @@ -164,8 +164,8 @@ func (t *TemporaryUploadRepository) RemoveFilesFromIndex(ctx context.Context, fi | ||||
| 	return nil | ||||
| } | ||||
|  | ||||
| // HashObject writes the provided content to the object db and returns its hash | ||||
| func (t *TemporaryUploadRepository) HashObject(ctx context.Context, content io.Reader) (string, error) { | ||||
| // HashObjectAndWrite writes the provided content to the object db and returns its hash | ||||
| func (t *TemporaryUploadRepository) HashObjectAndWrite(ctx context.Context, content io.Reader) (string, error) { | ||||
| 	stdOut := new(bytes.Buffer) | ||||
| 	stdErr := new(bytes.Buffer) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user