aboutsummaryrefslogtreecommitdiffstats
path: root/models/context.go
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade xorm to v1.0.2 (#11900)Lunny Xiao2020-06-151-1/+1
| | | Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Refactor repository check and sync functions (#9854)Lunny Xiao2020-01-201-0/+13
| | | Move more general repository functions out of models/repo.go
* Move all mail related codes from models to services/mailer (#7200)Lunny Xiao2019-09-241-0/+55
* move all mail related codes from models to modules/mailer * fix lint * use DBContext instead Engine * use WithContext not WithEngine * Use DBContext instead of Engine * don't use defer when sess.Close() * move DBContext to context.go and add some methods * move mailer from modules/ to services * fix lint * fix tests * fix fmt * add gitea copyright * fix tests * don't expose db functions * make code clear * add DefaultDBContext * fix build * fix bug