···44 "context"
55 "io"
6677+ commitgraphread "codeberg.org/lindenii/furgit/format/commitgraph/read"
78 "codeberg.org/lindenii/furgit/network/receivepack/service"
89 objectid "codeberg.org/lindenii/furgit/object/id"
910 objectstore "codeberg.org/lindenii/furgit/object/store"
···3132// HookRequest is the input presented to a receive-pack hook before quarantine
3233// promotion and ref updates.
3334//
3434-// Refs, ExistingObjects, and QuarantinedObjects are borrowed and are only
3535-// valid for the duration of the hook call.
3535+// Refs, ExistingObjects, QuarantinedObjects, and CommitGraph are borrowed and
3636+// are only valid for the duration of the hook call.
3637type HookRequest struct {
3738 Refs refstore.ReadingStore
3839 ExistingObjects objectstore.ReadingStore
3940 QuarantinedObjects objectstore.ReadingStore
4141+ CommitGraph *commitgraphread.Reader
4042 Updates []RefUpdate
4143 PushOptions []string
4244 IO HookIO
···6971 Refs: req.Refs,
7072 ExistingObjects: req.ExistingObjects,
7173 QuarantinedObjects: req.QuarantinedObjects,
7474+ CommitGraph: req.CommitGraph,
7275 Updates: translatedUpdates,
7376 PushOptions: append([]string(nil), req.PushOptions...),
7477 IO: HookIO{
···44 "context"
55 "io"
6677+ commitgraphread "codeberg.org/lindenii/furgit/format/commitgraph/read"
78 objectid "codeberg.org/lindenii/furgit/object/id"
89 objectstore "codeberg.org/lindenii/furgit/object/store"
910 refstore "codeberg.org/lindenii/furgit/ref/store"
···27282829// HookRequest is the borrowed view passed to one Hook invocation.
2930//
3030-// Refs, ExistingObjects, and QuarantinedObjects are borrowed and are only
3131-// valid for the duration of the hook call.
3131+// Refs, ExistingObjects, QuarantinedObjects, and CommitGraph are borrowed and
3232+// are only valid for the duration of the hook call.
3233type HookRequest struct {
3334 Refs refstore.ReadingStore
3435 ExistingObjects objectstore.ReadingStore
3536 QuarantinedObjects objectstore.ReadingStore
3737+ CommitGraph *commitgraphread.Reader
3638 Updates []RefUpdate
3739 PushOptions []string
3840 IO HookIO