blob: 5eabbb9e405bbec597bd443a7d8a1f32c40e4399 [file] [log] [blame] [edit]
use gix_hash::ObjectId;
use crate::{Error, Negotiator};
pub(crate) struct Noop;
impl Negotiator for Noop {
fn known_common(&mut self, _id: ObjectId, _graph: &mut crate::Graph<'_>) -> Result<(), Error> {
Ok(())
}
fn add_tip(&mut self, _id: ObjectId, _graph: &mut crate::Graph<'_>) -> Result<(), Error> {
Ok(())
}
fn next_have(&mut self, _graph: &mut crate::Graph<'_>) -> Option<Result<ObjectId, Error>> {
None
}
fn in_common_with_remote(&mut self, _id: ObjectId, _graph: &mut crate::Graph<'_>) -> Result<bool, Error> {
Ok(false)
}
}