Skip to content

Commit 7fd5bfd

Browse files
committed
docs(repository.diff): fix docstring keyword 'flag' -> 'flags'
The BaseRepository.diff signature takes 'flags: DiffOption = ...', not 'flag', but the docstring's Keyword arguments block listed 'flag'. Closes #1138
1 parent 627c4c1 commit 7fd5bfd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pygit2/repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ def diff(
614614
If 'b' is None, by default the working directory is compared to 'a'.
615615
If 'cached' is set to True, the index/staging area is used for comparing.
616616
617-
flag
617+
flags
618618
A combination of enums.DiffOption constants.
619619
620620
context_lines

0 commit comments

Comments
 (0)