File tree Expand file tree Collapse file tree 3 files changed +2
-11
lines changed Expand file tree Collapse file tree 3 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,6 @@ feature.experimental::
14
14
+
15
15
* `fetch.negotiationAlgorithm=skipping` may improve fetch negotiation times by
16
16
skipping more commits at a time, reducing the number of round trips.
17
- +
18
- * `protocol.version=2` speeds up fetches from repositories with many refs by
19
- allowing the client to specify which refs to list before the server lists
20
- them.
21
17
22
18
feature.manyFiles::
23
19
Enable config options that optimize for repos with many files in the
Original file line number Diff line number Diff line change @@ -48,8 +48,7 @@ protocol.version::
48
48
If set, clients will attempt to communicate with a server
49
49
using the specified protocol version. If the server does
50
50
not support it, communication falls back to version 0.
51
- If unset, the default is `0`, unless `feature.experimental`
52
- is enabled, in which case the default is `2`.
51
+ If unset, the default is `2`.
53
52
Supported versions:
54
53
+
55
54
--
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ static enum protocol_version parse_protocol_version(const char *value)
17
17
enum protocol_version get_protocol_version_config (void )
18
18
{
19
19
const char * value ;
20
- int val ;
21
20
const char * git_test_k = "GIT_TEST_PROTOCOL_VERSION" ;
22
21
const char * git_test_v ;
23
22
@@ -31,9 +30,6 @@ enum protocol_version get_protocol_version_config(void)
31
30
return version ;
32
31
}
33
32
34
- if (!git_config_get_bool ("feature.experimental" , & val ) && val )
35
- return protocol_v2 ;
36
-
37
33
git_test_v = getenv (git_test_k );
38
34
if (git_test_v && * git_test_v ) {
39
35
enum protocol_version env = parse_protocol_version (git_test_v );
@@ -43,7 +39,7 @@ enum protocol_version get_protocol_version_config(void)
43
39
return env ;
44
40
}
45
41
46
- return protocol_v0 ;
42
+ return protocol_v2 ;
47
43
}
48
44
49
45
enum protocol_version determine_protocol_version_server (void )
You can’t perform that action at this time.
0 commit comments