Parcourir la source

Add stub GitClient.archive.

Jelmer Vernooij il y a 2 ans
Parent
commit
94a94d5403
1 fichiers modifiés avec 15 ajouts et 0 suppressions
  1. 15 0
      dulwich/client.py

+ 15 - 0
dulwich/client.py

@@ -950,6 +950,21 @@ class GitClient(object):
         negotiated_capabilities = self._fetch_capabilities & server_capabilities
         return (negotiated_capabilities, symrefs, agent)
 
+    def archive(
+        self,
+        path,
+        committish,
+        write_data,
+        progress=None,
+        write_error=None,
+        format=None,
+        subdirs=None,
+        prefix=None,
+    ):
+        """Retrieve an archive of the specified tree.
+        """
+        raise NotImplementedError(self.archive)
+
 
 def check_wants(wants, refs):
     """Check that a set of wants is valid.