diff --git a/git/diff.py b/git/diff.py index 346a2ca7b..a0bfea463 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)