From 7fd5bfde012647a32d4418c1c0c689f37481bbb0 Mon Sep 17 00:00:00 2001 From: MukundaKatta Date: Mon, 20 Apr 2026 11:38:08 -0700 Subject: [PATCH] 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 --- pygit2/repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygit2/repository.py b/pygit2/repository.py index 2605eee3..b5e59e87 100644 --- a/pygit2/repository.py +++ b/pygit2/repository.py @@ -614,7 +614,7 @@ def diff( If 'b' is None, by default the working directory is compared to 'a'. If 'cached' is set to True, the index/staging area is used for comparing. - flag + flags A combination of enums.DiffOption constants. context_lines