Commit Diff


commit - 346fa892a63209dea3b9d75728fecad7a2eeb101
commit + 97268afcc9ee0f127c73d1032592b2c495492587
blob - 8809ca217374ff9a586a8e44d92cfd06abdbdfdc
blob + 75dc2afa341a6904b3cd7eab5be31aa45a08321f
--- NEWS
+++ NEWS
@@ -1,5 +1,8 @@
 0.20.35	UNRELEASED
 
+ * Document the ``path`` attribute for ``Repo``.
+   (Jelmer Vernooij, #854)
+
 0.20.34	2022-03-14
 
  * Add support for multivars in configuration.
blob - 2bef7d37d272e3111069d00a87bde143eac9e53d
blob + 7c3c3a782b9b206c29f6311985c4f63e279b9ca9
--- dulwich/repo.py
+++ dulwich/repo.py
@@ -1049,6 +1049,12 @@ class Repo(BaseRepo):
     Note that a repository object may hold on to resources such
     as file handles for performance reasons; call .close() to free
     up those resources.
+
+    Attributes:
+
+      path (str): Path to the working copy (if it exists) or repository control
+        directory (if the repository is bare)
+      bare (bool): Whether this is a bare repository
     """
 
     def __init__(self, root, object_store=None, bare=None):
@@ -1175,8 +1181,8 @@ class Repo(BaseRepo):
         For a main working tree, it is identical to controldir().
 
         For a linked working tree, it is the control directory of the
-        main working tree."""
-
+        main working tree.
+        """
         return self._commondir
 
     def _determine_file_mode(self):