]> source.dussan.org Git - gitea.git/commit
Make git push options accept short name (#32245)
authorwxiaoguang <wxiaoguang@gmail.com>
Sat, 12 Oct 2024 05:42:10 +0000 (13:42 +0800)
committerGitHub <noreply@github.com>
Sat, 12 Oct 2024 05:42:10 +0000 (05:42 +0000)
commitafa8dd45af29f529f3695b4d2bab7ed98ac830db
tree88773f35c396edf78ad8910fd9e068ca5f2eadcc
parent900ac622514081b90e08135cab175d5d1ea1bc9d
Make git push options accept short name (#32245)

Just like what most CLI parsers do: `--opt` means `opt=true`

Then users could use `-o force-push` as `-o force-push=true`
cmd/hook.go
modules/private/hook.go
modules/private/pushoptions.go [new file with mode: 0644]
modules/private/pushoptions_test.go [new file with mode: 0644]
routers/private/hook_post_receive.go
services/agit/agit.go
tests/integration/git_test.go