mirror of https://github.com/go-gitea/gitea.git
Follow #22568 * Remove unnecessary ToTrustedCmdArgs calls * the FAQ in #22678 * Quote: When using ToTrustedCmdArgs, the code will be very complex (see the changes for examples). Then developers and reviewers can know that something might be unreasonable. * The `signArg` couldn't be empty, it's either `-S{keyID}` or `--no-gpg-sign`. * Use `signKeyID` instead, add comment "empty for no-sign, non-empty to sign" * 5-line code could be extracted to a common `NewGitCommandCommit()` to handle the `signKeyID`, but I think it's not a must, current code is clear enough. |
2 years ago | |
---|---|---|
.. | ||
check.go | 2 years ago | |
check_test.go | 2 years ago | |
comment.go | 2 years ago | |
commit_status.go | 2 years ago | |
edits.go | 2 years ago | |
lfs.go | 2 years ago | |
main_test.go | 2 years ago | |
merge.go | 2 years ago | |
merge_merge.go | 2 years ago | |
merge_prepare.go | 2 years ago | |
merge_rebase.go | 2 years ago | |
merge_squash.go | 2 years ago | |
merge_test.go | 2 years ago | |
patch.go | 2 years ago | |
patch_unmerged.go | 2 years ago | |
pull.go | 2 years ago | |
pull_test.go | 2 years ago | |
review.go | 2 years ago | |
temp_repo.go | 2 years ago | |
update.go | 2 years ago | |
update_rebase.go | 2 years ago |