ソースを参照

Add definitions for two more capabilities.

Jelmer Vernooij 4 年 前
コミット
41798c3127
1 ファイル変更4 行追加0 行削除
  1. 4 0
      dulwich/protocol.py

+ 4 - 0
dulwich/protocol.py

@@ -67,6 +67,8 @@ CAPABILITY_SIDE_BAND_64K = b'side-band-64k'
 CAPABILITY_THIN_PACK = b'thin-pack'
 CAPABILITY_AGENT = b'agent'
 CAPABILITY_SYMREF = b'symref'
+CAPABILITY_ALLOW_TIP_SHA1_IN_WANT = b'allow-tip-sha1-in-want'
+CAPABILITY_ALLOW_REACHABLE_SHA1_IN_WANT = b'allow-reachable-sha1-in-want'
 
 # Magic ref that is used to attach capabilities to when
 # there are no refs. Should always be ste to ZERO_SHA.
@@ -88,6 +90,8 @@ KNOWN_UPLOAD_CAPABILITIES = set(COMMON_CAPABILITIES + [
     CAPABILITY_SHALLOW,
     CAPABILITY_DEEPEN_NOT,
     CAPABILITY_DEEPEN_RELATIVE,
+    CAPABILITY_ALLOW_TIP_SHA1_IN_WANT,
+    CAPABILITY_ALLOW_REACHABLE_SHA1_IN_WANT,
     ])
 KNOWN_RECEIVE_CAPABILITIES = set(COMMON_CAPABILITIES + [
     CAPABILITY_REPORT_STATUS,