28 Commits (main)

Author SHA1 Message Date
silverwind 852bf5e2a5
Add git.DIFF_RENAME_SIMILARITY_THRESHOLD option (#36164) 10 hours ago
Lunny Xiao d2a372fc59
Move some functions to gitrepo package to reduce RepoPath reference directly (#36126) 6 days ago
Lunny Xiao 69f5ee970c
Move some functions to gitrepo package (#35543) 2 months ago
Lunny Xiao 9332ff291b
Move git command to git/gitcmd (#35483) 3 months ago
Lunny Xiao 1352080ef7
Fix incorrect comment diff hunk parsing, fix github asset ID nil panic (#35046) 5 months ago
TheFox0x7 ae3a18e01a
Remove context from git struct (#33793) 10 months ago
hiifong b7614e2d2f
Fix parentCommit invalid memory address or nil pointer dereference. (#33204) 11 months ago
Lunny Xiao df7f1c2ead
Fix protected branch files detection on pre_receive hook (#31778) 1 year ago
flynnnnnnnnnn e81ccc406b
Implement FSFE REUSE for golang files (#21840) 3 years ago
delvh 0ebb45cfe7
Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 3 years ago
wxiaoguang dcd9fc7ee8
Refactor git command arguments and make all arguments to be safe to be used (#21535) 3 years ago
Wim cb50375e2b
Add more linters to improve code readability (#19989) 4 years ago
6543 1ebb30e41b
Pass gitRepo down to GetRawDiff, since its used for main repo and wiki (#19461) 4 years ago
wxiaoguang 124b072f0b
Remove `git.Command.Run` and `git.Command.RunInDir*` (#19280) 4 years ago
6543 3e88af898a
Make git.OpenRepository accept Context (#19260) 4 years ago
Martin Scholz 26718a785a
Change git.cmd to RunWithContext (#18693) 4 years ago
zeripath eb748f5f3c
Add apply-patch, basic revert and cherry-pick functionality (#17902) 4 years ago
6543 3043eb36bf
Delete old git.NewCommand() and use it as git.NewCommandContext() (#18552) 4 years ago
Gusted c2e13fb763
Fix partial cloning a repo (#18373) 4 years ago
Lunny Xiao 35fdefc1ff
Always use git command but not os.Command (#18363) 4 years ago
zeripath 5cb0c9aa0d
Propagate context and ensure git commands run in request context (#17868) 4 years ago
zeripath fb5f7791ef
Prevent off-by-one error on comments on newly appended lines (#18029) 4 years ago
zeripath 01087e9eef
Make Requests Processes and create process hierarchy. Associate OpenRepository with context. (#17125) 4 years ago
Jimmy Praet 3d6cb25e31
Support unprotected file patterns (#16395) 4 years ago
6543 3ef23d5411
Use gitea logging module for git module (#16243) 5 years ago
a1012112796 007fb00c0e
response 404 for diff/patch of a commit that not exist (#15221) 5 years ago
zeripath 3d8b5ad5f3
Fix a couple of CommentAsPatch issues. (#14804) 5 years ago
Lunny Xiao e8860ef4f9 Some refactor on git diff and ignore getting commit information failed on migrating pull request review comments (#9996) 6 years ago