blob: 5eabbb9e405bbec597bd443a7d8a1f32c40e4399 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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)
}
}
|