MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / advertise

Method advertise

atomic-objects/src/sync.rs:239–245  ·  view source on GitHub ↗

A ref advertisement for the given views (and their ancestors): refs + view-snapshot objects only, no change bodies. Used by push negotiation.

(refs: Vec<String>)

Source from the content-addressed store, hash-verified

237 /// A ref advertisement for the given views (and their ancestors): refs +
238 /// view-snapshot objects only, no change bodies. Used by push negotiation.
239 pub fn advertise(refs: Vec<String>) -> Self {
240 SyncWants {
241 refs,
242 haves: Vec::new(),
243 refs_only: true,
244 }
245 }
246
247 /// Whether this asks for all views (empty `refs`).
248 pub fn wants_all(&self) -> bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected