You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: git-repository/src/remote/connection/fetch.rs
+53-2Lines changed: 53 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,13 @@ mod error {
8
8
/// The error returned by [`receive()`](super::Prepare::receive()).
9
9
#[derive(Debug, thiserror::Error)]
10
10
#[error("TBD")]
11
-
pubenumError{}
11
+
pubenumError{
12
+
#[error("The configured pack.indexVersion is not valid. It must be 1 or 2, with 2 being the default{}", desired.map(|n| format!(" (but got {})", n)).unwrap_or_default())]
13
+
PackIndexVersion{
14
+
desired:Option<i64>,
15
+
source:Option<git_config::value::Error>,
16
+
},
17
+
}
12
18
}
13
19
pubuse error::Error;
14
20
@@ -42,14 +48,59 @@ where
42
48
T:Transport,
43
49
P:Progress,
44
50
{
45
-
/// receive the pack and perform the operation as configured by git via `git-config` or overridden by various builder methods.
51
+
/// Receive the pack and perform the operation as configured by git via `git-config` or overridden by various builder methods.
52
+
///
53
+
/// ### Negotiation
54
+
///
55
+
/// "fetch.negotiationAlgorithm" describes algorithms `git` uses currently, with the default being `consecutive` and `skipping` being
56
+
/// experimented with. We currently implement something we could call 'naive' which works for now.
0 commit comments