git-commit-vandalism/t/t5411
Jiang Xin 31e8595a11 receive-pack: new config receive.procReceiveRefs
Add a new multi-valued config variable "receive.procReceiveRefs"
for `receive-pack` command, like the follows:

    git config --system --add receive.procReceiveRefs refs/for
    git config --system --add receive.procReceiveRefs refs/drafts

If the specific prefix strings given by the config variables match the
reference names of the commands which are sent from git client to
`receive-pack`, these commands will be executed by an external hook
(named "proc-receive"), instead of the internal `execute_commands`
function.

For example, if it is set to "refs/for", pushing to a reference such as
"refs/for/master" will not create or update reference "refs/for/master",
but may create or update a pull request directly by running the hook
"proc-receive".

Optional modifiers can be provided in the beginning of the value to
filter commands for specific actions: create (a), modify (m),
delete (d). A `!` can be included in the modifiers to negate the
reference prefix entry. E.g.:

    git config --system --add receive.procReceiveRefs ad:refs/heads
    git config --system --add receive.procReceiveRefs !:refs/heads

Signed-off-by: Jiang Xin <zhiyou.jx@alibaba-inc.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2020-08-27 12:47:47 -07:00
..
common-functions.sh
once-0010-report-status-v1.sh receive-pack: new config receive.procReceiveRefs 2020-08-27 12:47:47 -07:00
test-0000-standard-git-push.sh
test-0001-standard-git-push--porcelain.sh
test-0002-pre-receive-declined.sh
test-0003-pre-receive-declined--porcelain.sh
test-0010-proc-receive-settings.sh receive-pack: new config receive.procReceiveRefs 2020-08-27 12:47:47 -07:00
test-0011-no-hook-error.sh
test-0012-no-hook-error--porcelain.sh
test-0013-bad-protocol.sh
test-0014-bad-protocol--porcelain.sh
test-0020-report-ng.sh
test-0021-report-ng--porcelain.sh
test-0022-report-unexpect-ref.sh
test-0023-report-unexpect-ref--porcelain.sh
test-0024-report-unknown-ref.sh
test-0025-report-unknown-ref--porcelain.sh
test-0026-push-options.sh
test-0027-push-options--porcelain.sh
test-0030-report-ok.sh
test-0031-report-ok--porcelain.sh
test-0032-report-with-options.sh New capability "report-status-v2" for git-push 2020-08-27 12:47:47 -07:00
test-0033-report-with-options--porcelain.sh New capability "report-status-v2" for git-push 2020-08-27 12:47:47 -07:00
test-0034-report-ft.sh
test-0035-report-ft--porcelain.sh
test-0036-report-multi-rewrite-for-one-ref.sh New capability "report-status-v2" for git-push 2020-08-27 12:47:47 -07:00
test-0037-report-multi-rewrite-for-one-ref--porcelain.sh New capability "report-status-v2" for git-push 2020-08-27 12:47:47 -07:00
test-0038-report-mixed-refs.sh New capability "report-status-v2" for git-push 2020-08-27 12:47:47 -07:00
test-0039-report-mixed-refs--porcelain.sh New capability "report-status-v2" for git-push 2020-08-27 12:47:47 -07:00
test-0040-process-all-refs.sh receive-pack: new config receive.procReceiveRefs 2020-08-27 12:47:47 -07:00
test-0041-process-all-refs--porcelain.sh receive-pack: new config receive.procReceiveRefs 2020-08-27 12:47:47 -07:00
test-0050-proc-receive-refs-with-modifiers.sh receive-pack: new config receive.procReceiveRefs 2020-08-27 12:47:47 -07:00