libgit2 / pygit2

Python bindings for libgit2
https://www.pygit2.org/
Other
1.58k stars 382 forks source link

Docstring Typo #1138

Open bmccary opened 2 years ago

bmccary commented 2 years ago

In the docstring for BaseRepository.diff, the kwarg argument should be flags, not flag (note the missing s).

https://github.com/libgit2/pygit2/blob/d32778816444d9420892f526d57fa5ec3f2cdbdd/pygit2/repository.py#L509-L512

The function BaseRepository.diff maps to various other functions where the argument is flags, e.g.,

https://github.com/libgit2/pygit2/blob/d32778816444d9420892f526d57fa5ec3f2cdbdd/pygit2/_pygit2.pyi#L543-L546