Skip to content

Commit 12d91c6

Browse files
authored
Merge pull request #1481 from grumpyp/main
Improve docs
2 parents 6aa7fc5 + 9af77b5 commit 12d91c6

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

‎AUTHORS

+1
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,5 @@ Contributors are:
4747
-Hugo van Kemenade
4848
-Hiroki Tokunaga <tokusan441 _at_ gmail.com>
4949
-Julien Mauroy <pro.julien.mauroy _at_ gmail.com>
50+
-Patrick Gerard
5051
Portions derived from other open source works and are clearly marked.

‎git/repo/base.py

+2
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,8 @@ def ignored(self, *paths: PathLike) -> List[str]:
858858
@property
859859
def active_branch(self) -> Head:
860860
"""The name of the currently active branch.
861+
862+
:raises TypeError: If HEAD is detached
861863
:return: Head to the active branch"""
862864
# reveal_type(self.head.reference) # => Reference
863865
return self.head.reference

0 commit comments

Comments
 (0)