diff options
| author | 2026-03-28 18:06:55 +0000 | |
|---|---|---|
| committer | 2026-03-28 18:06:55 +0000 | |
| commit | 1c859e362023bcf8f5b211d25b4ecf455f8b460e (patch) | |
| tree | efe346d96f940ae7d9f5a83f7b3765cc6f5f472e /network/receivepack/service/hook.go | |
| parent | reachability: Don't have a separate New for commit graphs (diff) | |
| signature | No signature | |
network/receivepack: Add commit-graph support v0.1.122
Diffstat (limited to 'network/receivepack/service/hook.go')
| -rw-r--r-- | network/receivepack/service/hook.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/network/receivepack/service/hook.go b/network/receivepack/service/hook.go index c3be2a76..e3afa375 100644 --- a/network/receivepack/service/hook.go +++ b/network/receivepack/service/hook.go @@ -4,6 +4,7 @@ import ( "context" "io" + commitgraphread "codeberg.org/lindenii/furgit/format/commitgraph/read" objectid "codeberg.org/lindenii/furgit/object/id" objectstore "codeberg.org/lindenii/furgit/object/store" refstore "codeberg.org/lindenii/furgit/ref/store" @@ -27,12 +28,13 @@ type UpdateDecision struct { // HookRequest is the borrowed view passed to one Hook invocation. // -// Refs, ExistingObjects, and QuarantinedObjects are borrowed and are only -// valid for the duration of the hook call. +// Refs, ExistingObjects, QuarantinedObjects, and CommitGraph are borrowed and +// are only valid for the duration of the hook call. type HookRequest struct { Refs refstore.ReadingStore ExistingObjects objectstore.ReadingStore QuarantinedObjects objectstore.ReadingStore + CommitGraph *commitgraphread.Reader Updates []RefUpdate PushOptions []string IO HookIO |
