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>)
| 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 { |
nothing calls this directly
no outgoing calls
no test coverage detected