Commit Graph

60 Commits (39735c43a8b6f7db3b3e3531ca9115a60335d524)

Author SHA1 Message Date
Mihir Joshi 62f2d717b7
Fix reverting a merge commit failing (#28794) (#28825) 10 months ago
JakobDev c548dde205
More refactoring of `db.DefaultContext` (#27083) 1 year ago
Lunny Xiao 4f32abaf94
move repository deletion to service layer (#26948) 1 year ago
wxiaoguang e8aae43f56
Move web/api context related testing function into a separate package (#26859) 1 year ago
Chongyi Zheng ad43486cd3
Fix some slice append usages (#26778) 1 year ago
wxiaoguang c6b92c84fe
Sync repo's IsEmpty status correctly (#26517) 1 year ago
wxiaoguang 236c645bf1
Refactor "Content" for file uploading (#25851) 1 year ago
wxiaoguang 22eeede885
Do not "guess" the file encoding/BOM when using API to upload files (#25828) 1 year ago
silverwind 88f835192d
Replace `interface{}` with `any` (#25686) 1 year ago
Lunny Xiao 6e19484f4d
Sync branches into databases (#22743) 1 year ago
wxiaoguang 4e2f1ee58d
Refactor web package and context package (#25298) 1 year ago
yp05327 22a39bb961
Fix profile render when the README.md size is larger than 1024 bytes (#25131) 1 year ago
wxiaoguang a90988d63f
Update repo's default branch when adding new files in an empty one (#25017) 2 years ago
Denys Konovalov 275d4b7e3f
API endpoint for changing/creating/deleting multiple files (#24887) 2 years ago
wxiaoguang cf465b4721
Support uploading file to empty repo by API (#24357) 2 years ago
wxiaoguang e422342eeb
Allow adding new files to an empty repo (#24164) 2 years ago
wxiaoguang ce9dee5a1e
Introduce path Clean/Join helper functions (#23495) 2 years ago
来自村里的小螃蟹 f83246edb2
fix submodule is nil panic (#23588) 2 years ago
Lunny Xiao b116418f05
Use CleanPath instead of path.Clean (#23371) 2 years ago
Zettat123 4de5cd9f36
Return empty url for submodule tree entries (#23043) 2 years ago
Lunny Xiao bd820aa9c5
Add context cache as a request level cache (#22294) 2 years ago
sillyguodong 51ab495198
escape filename when assemble URL (#22850) 2 years ago
wxiaoguang 6bc3079c00
Refactor git command package to improve security and maintainability (#22678) 2 years ago
Lunny Xiao 2782c14396
Supports wildcard protected branch (#20825) 2 years ago
Jason Song 7adc2de464
Use context parameter in models/git (#22367) 2 years ago
Jason Song 6cf09ccab4
Use complete SHA to create and query commit status (#22244) 2 years ago
Lunny Xiao 0a7d3ff786
refactor some functions to support ctx as first parameter (#21878) 2 years ago
flynnnnnnnnnn e81ccc406b
Implement FSFE REUSE for golang files (#21840) 2 years ago
delvh 0ebb45cfe7
Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
wxiaoguang dcd9fc7ee8
Refactor git command arguments and make all arguments to be safe to be used (#21535) 2 years ago
wxiaoguang c08e42c47e
Refactor parseTreeEntries, speed up tree list (#21368) 2 years ago
Lunny Xiao 1d8543e7db
Move some files into models' sub packages (#20262) 2 years ago
Gusted 692707f145
Add latest commit's SHA to content response (#20398) 2 years ago
6543 0a97480934
Add "X-Gitea-Object-Type" header for GET `/raw/` & `/media/` API (#20438) 2 years ago
wxiaoguang 157b405753
Remove legacy git code (ver < 2.0), fine tune markup tests (#19930) 2 years ago
Lunny Xiao 110fc57cbc
Move some code into models/git (#19879) 2 years ago
wxiaoguang a0051634b9
Refactor git module, make Gitea use internal git config (#19732) 2 years ago
Lunny Xiao fd7d83ace6
Move almost all functions' parameter db.Engine to context.Context (#19748) 3 years ago
KN4CK3R a9ca4b4100
Calculate filename hash only once (#19654) 3 years ago
Lunny Xiao 4ca1d7547a
Move some helper files out of models (#19355) 3 years ago
kolaente 59b30f060a
Auto merge pull requests when all checks succeeded via API (#9307) 3 years ago
6543 c764355676
RepoAssignment ensure to close before overwrite (#19449) 3 years ago
Lunny Xiao b8911fb456
Use a struct as test options (#19393) 3 years ago
wxiaoguang 124b072f0b
Remove `git.Command.Run` and `git.Command.RunInDir*` (#19280) 3 years ago
6543 3e88af898a
Make git.OpenRepository accept Context (#19260) 3 years ago
zeripath e69b7a92ed
Allow API to create file on empty repo (#19224) 3 years ago
KN4CK3R 5b0cdd6155
Set is_empty in fixtures (#18869) 3 years ago
Martin Scholz 26718a785a
Change git.cmd to RunWithContext (#18693) 3 years ago
zeripath eb748f5f3c
Add apply-patch, basic revert and cherry-pick functionality (#17902) 3 years ago
6543 3043eb36bf
Delete old git.NewCommand() and use it as git.NewCommandContext() (#18552) 3 years ago