diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-09-25 15:25:39 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-09-25 15:25:39 -0700 |
commit | 6c430a647cb990fc856d328733fa59e1fafadb97 (patch) | |
tree | 09bf6873a1b13f2f0178d864a09a30f9fe3cf09a /remote.h | |
parent | 48794acc50f14394ca6c4f5092a4a498f409f350 (diff) | |
parent | d6edc189f6b3d8606150a52fd2c2fcd781b8550f (diff) | |
download | git-6c430a647cb990fc856d328733fa59e1fafadb97.tar.gz |
Merge branch 'jx/proc-receive-hook'
"git receive-pack" that accepts requests by "git push" learned to
outsource most of the ref updates to the new "proc-receive" hook.
* jx/proc-receive-hook:
doc: add documentation for the proc-receive hook
transport: parse report options for tracking refs
t5411: test updates of remote-tracking branches
receive-pack: new config receive.procReceiveRefs
doc: add document for capability report-status-v2
New capability "report-status-v2" for git-push
receive-pack: feed report options to post-receive
receive-pack: add new proc-receive hook
t5411: add basic test cases for proc-receive hook
transport: not report a non-head push as a branch
Diffstat (limited to 'remote.h')
-rw-r--r-- | remote.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -93,6 +93,14 @@ int for_each_remote(each_remote_fn fn, void *priv); int remote_has_url(struct remote *remote, const char *url); +struct ref_push_report { + const char *ref_name; + struct object_id *old_oid; + struct object_id *new_oid; + unsigned int forced_update:1; + struct ref_push_report *next; +}; + struct ref { struct ref *next; struct object_id old_oid; @@ -140,6 +148,7 @@ struct ref { REF_STATUS_ATOMIC_PUSH_FAILED } status; char *remote_status; + struct ref_push_report *report; struct ref *peer_ref; /* when renaming */ char name[FLEX_ARRAY]; /* more */ }; |