From c062de26530206213680dc5d6fcaf1443b36ec6a Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 27 May 2021 12:45:05 +0200 Subject: [PATCH] Git diff: adding additional parameters at the end of the command --- git/diff.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/git/diff.py b/git/diff.py index a40fc244e..13513bc77 100644 --- a/git/diff.py +++ b/git/diff.py @@ -157,6 +157,9 @@ def diff(self, other: Union[Type[Index], Type['Tree'], object, None, str] = Inde args.extend(paths) # END paths handling + if 'end_params' in kwargs: + args.extend(kwargs.pop('end_params')) + kwargs['as_process'] = True proc = diff_cmd(*self._process_diff_args(args), **kwargs)