Explorar o código

docs/tutorial: document depth kwarg in determine_wants

Peter Rowlands %!s(int64=4) %!d(string=hai) anos
pai
achega
fdfa900596
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      docs/tutorial/remote.txt

+ 4 - 1
docs/tutorial/remote.txt

@@ -41,10 +41,13 @@ The client object can then be used to retrieve a pack. The ``fetch_pack``
 method takes a ``determine_wants`` callback argument, which allows the
 client to determine which objects it wants to end up with::
 
-   >>> def determine_wants(refs):
+   >>> def determine_wants(refs, depth=None):
    ...    # retrieve all objects
    ...    return refs.values()
 
+Note that the ``depth`` keyword argument will contain an optional requested
+shallow fetch depth.
+
 Another required object is a "graph walker", which is used to determine
 which objects that the client already has should not be sent again
 by the server. Here in the tutorial we'll just use a dummy graph walker